[ZODB-Dev] Multi-version concurrency control
Casey Duncan
casey at zope.com
Mon Sep 29 10:36:27 EDT 2003
On Monday 29 September 2003 10:23 am, Jeremy Hylton wrote:
> On Mon, 2003-09-29 at 10:11, Casey Duncan wrote:
> > > http://www.zope.org/Wikis/ZODB/MultiVersionConcurrencyControl
> > This is very well written, not an easy thing to explain to the proletariat
> > down here ;^)
>
> Thanks :-).
>
> > A question: Will the ZODB provide a way to revert to the current behavior
when
> > the application wishes to retrieve the latest revision of an object
> > regardless of the state of that object at the start of the transaction? I
can
> > think of a couple places where this would be desireable.
> >
> > I suspect the answer is to call load() explicitly in a particular way that
> > means "current revision", no?
>
> load() will always mean current revision. I think the way to deal with
> this is to add an option to a connection. You can either get MVCC or
> you can always get the current object and risk conflict errors.
Adding an option to the connection might be tricky in Zope since applications
don't create connections explicitly, unless it can be set in "mid stream"
which could be scary.
-Casey
More information about the ZODB-Dev
mailing list