[ZODB-Dev] snapshot isolation how-to

Adam Groszer adamg at mailbox.hu
Wed Apr 16 19:14:51 EDT 2003


Dear Shane, Jeremy,

what about the solution I proposed in "[ZODB-Dev] proposal about
setLocalTransaction"?
This way you don't have to change the DB.open, but you can still have a
default local transaction with subclassing or
ZODB.Connection.Connection._local_trans_mode=1.

-----Original Message-----

Here's another possible way to do this.  Maybe the DB.open() method
should accept an optional "local_transactions" boolean argument.  That
way, there's no chance to switch modes too late, and the connection will
never wind up in multiple transactions (hopefully.)

Shane




More information about the ZODB-Dev mailing list