[ZODB-Dev] Commit or lock object accross transactions
Roché Compaan
roche at upfrontsystems.co.za
Tue Jul 29 18:22:27 EDT 2003
* Christian Reis <kiko at async.com.br> [2003-07-28 23:49]:
> On Mon, Jul 28, 2003 at 05:42:25PM -0400, Shane Hathaway wrote:
> > The RDBMS parallel is a sequence, but an important difference is that
> > ZEO lets you have only one such sequence. Maybe ZEO should let you have
> > an arbitrary number of integer sequences (keyed by OID, perhaps).
>
> I'd *really* say +1 on that, though I'd suggest keyed by a string, since
> you might not have an OID at the time you want to create a sequence
> (think an ID for a certain class of objects; you might need it before
> creating the first one).
>
> This is a really a critical feature for anybody considering the ZODB as
> a data store in the `same-ish' application domain as an RDBMS.
FWIW, this works great. I can now request a counter for a string key
from my storage and be confident that there will be no duplicates.
I am very glad there is an easy way to do this :-)
--
Roché Compaan
Upfront Systems http://www.upfrontsystems.co.za
More information about the ZODB-Dev
mailing list