Trying ZODB, background in Relational: mimic auto_increment?

Maric Michaud maric at aristote.info
Fri Aug 15 13:47:56 EDT 2008


Le Thursday 14 August 2008 20:14:19 Christian Heimes, vous avez écrit :
> Diez B. Roggisch wrote:
> > But that's a great deal more complicated! It requires merging, and while
> > this of course is possible, you should have mentioned it because
> > otherwise the OP might run into problems.
>
> A lock doesn't do the job at all. ZODB supports clustering through ZEO.
> Multiple ZEO clients can be attached to a single or more ZODB servers.
> Any kind of thread based locking is local to each ZEO client.
>
> You have to sync a sequence generator across multiple ZEO clients, hook
> into the two phase commit protocol or use the conflict resolution hooks.

You don't have too if you manage the conflict error anywhere else in the 
program just manage the exception ConflictError and let the user retry later, 
that will not happen that much on most application.

But,

> The problem is more complex than you think.
>

Not that complex, strength of ZODB is right here, this entirely covered by the 
introduction to zodb (ZODB/ZEO programming guide), see userdb and chatter 
examples.

> Christian
>
> --
> http://mail.python.org/mailman/listinfo/python-list



-- 
_____________

Maric Michaud



More information about the Python-list mailing list