[ZODB-Dev] design issue: job queue is concurrency bottleneck

Christian Robottom Reis kiko at async.com.br
Thu Mar 4 10:16:03 EST 2004


On Thu, Mar 04, 2004 at 10:11:51AM -0500, John Belmonte wrote:
> >Have you considered trying to add the key, catching ConflictError, and
> >trying again adding a small time offset?
> 
> My conflict errors are not due to writing to the same keys.  From my 
> limited understanding of BTrees, adding keys may cause buckets to be 
> shuffled around, resulting in a write error.

Well, the same suggestion applies: catch the ConflictError, sync() your
current connection (or abort() your current transaction), and try again?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331



More information about the ZODB-Dev mailing list