[ZODB-Dev] Re: Local transactions and mount points

Dieter Maurer dieter at handshake.de
Tue Feb 24 14:15:16 EST 2004


Jeremy Hylton wrote at 2004-2-24 09:48 -0500:
> ...
[DM]
>> For this to work, all connections must have the *same* transaction.
>> This is not the case in the "setLocalTransaction" mode.
>> You can use this mode only when you have a single (ZODB) connection:
>> no support for multiple ZODB connections, no support for connections
>> to relational databases or other transactional subsystems.

[JH]
>If you have multiple ZODB connections, you could call
>setLocalTransaction() on each of them and pass the same transaction.  In
>this case, you're opting for explicit coordination instead of the
>implicit coordination you get by default.

[DM]

My code (Zope 2.7; ZODB 3.2) looks like:

    def setLocalTransaction(self):
        """Use a transaction bound to the connection rather than the thread"""

This code does not have a way to pass the same transaction in.

-- 
Dieter



More information about the ZODB-Dev mailing list