[ZODB-Dev] Quick ZODB connection synch question

Dieter Maurer dieter at handshake.de
Thu Oct 9 15:24:30 EDT 2003


Chris Withers wrote at 2003-10-9 15:10 +0100:
 > Shane Hathaway wrote:
 > 
 > > Furthermore, you should not expect B to be updated implicitly at 
 > > transaction boundaries unless some object in B actually got changed.
 > 
 > This is icky and unintuitive. Why is ZODB like that?

The transaction learns about a connection only when one
of the connection's objects is changed. Then the connection
registers the object with the transaction, the transaction
can reference the connection via this object.

It would be easy to let the connection register with the transaction
when the connection is opened. Unfortunately, a new transaction
is created whenever the old one is committed/aborted/begun.
Such newly created transactions no longer know anything about
the still open connections known by the former transaction.

Thus, it is not so easy....


Dieter



More information about the ZODB-Dev mailing list