[ZODB-Dev] _p_resolveConflicts

Jim Fulton jim@zope.com
Fri, 03 Aug 2001 10:23:13 -0400


Chris Withers wrote:
> 
> Jim Fulton wrote:
> >
> > We check if the catalog already uses the id. If it does,
> > we pick another. We rely on consistency in the transaction system
> > to deal with concurrency.
> 
> Ah, hence if you use the _p_independent trick you loose concurrency and hence
> the ids migth not be unique?

Specifically, you lose consistency, which is one part of "concurrency".
Note that you do retain proper updating of the counter, since conflicting
changes to the counter can be resolved (e.g. BTrees/Length).

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org