[ZODB-Dev] snapshot isolation how-to

Shane Hathaway shane@zope.com
Tue, 15 Apr 2003 16:43:12 -0400


Dieter Maurer wrote:
> Adam Groszer wrote at 2003-4-15 09:20 +0200:
>  > Another thing what I found is:
>  > The new setLocalTransaction mode of the Connection caused that the
>  > Transaction was never destroyed. This caused that as soon as I closed and
>  > opened a Connection the same Transaction was used. Thus Transaction.__init__
>  > and ._setup was never called again, but when (re)starting the server.
>  > Currently I modified the Connection.close to kill the Transaction, but maybe
>  > it would be a better idea to reset the Transaction._startSerial at a
>  > finished transaction.
> 
> That's interesting:
> 
>   "setLocalTransaction" is something I do not yet know.

It's an experimental feature.  It binds transactions to the connection 
rather than the thread, allowing you to run multiple transactions in a 
single thread.  Use of setLocalTransaction() is not generally compatible 
with Zope.

Shane