[ZODB-Dev] Multi-Threading Transactions
Andreas Jung
lists at andreas-jung.com
Thu Oct 13 01:14:07 EDT 2005
--On 13. Oktober 2005 00:52:02 -0400 Chris Spencer
<gmane.20.evilspam at spamgourmet.com> wrote:
> If one thread writes to an object on one connection, and another thread
> does the same on another connection, then one calls transaction.commit(),
> will the all the changes in both connections be commited? Is there a way
> for threads to maintain separate transactions?
>
>
The first thread to commit wins. The second one will see a
WriteConflictError exception. THat's how the ZDOB works: first come, first
serve.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20051013/a5d77b23/attachment.bin
More information about the ZODB-Dev
mailing list