[ZODB-Dev] Sequences and ZODB conflicts

Toby Dickenson tdickenson@geminidataloggers.com
Wed, 29 Jan 2003 10:15:29 +0000


On Wednesday 29 January 2003 1:27 am, Christian Reis wrote:

> Have I lost the chance to
> save this instance forever

Yes. You should repeat the transaction from the beginning.

> All that conflicted was the Sequence, after all.

You could split it into two transactions. The first increments the sequen=
ce=20
number, the second uses it.

Of course this raises a risk that a failure between the two transactions =
might=20
cause a number to be lost. I think there might be a way around this using=
=20
versions....

--=20
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson