[ZODB-Dev] Commit or lock object accross transactions

Christian Reis kiko at async.com.br
Wed Jul 16 14:47:21 EDT 2003


On Wed, Jul 16, 2003 at 12:17:41PM -0400, Jeremy Hylton wrote:
> If you want to increment the object counter, you need to do it in a
> separate transaction.  You'd need to use a separate database connection
> for the object id counter.

Well, he can increment the counter in his transaction and then trust
conflict resolution (something like BTrees.Length) to handle any
collisions. The problem in this case is really having the ID change at
commit time.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL



More information about the ZODB-Dev mailing list