logo       

Re: conflict resolution for PersistentList: msg#00123

web.zope.zodb

Subject: Re: conflict resolution for PersistentList


> class ConflictPersistentList(PersistentList):
> def _p_resolveConflict(_, oldState, savedState, newState):
> print "resolving"
> print oldState, newState
> return oldState

Hi Diez B. Roggisch and other,

I would not store data in a persistent list.
As far as I know the data is stored in a python
list. Every time you change it self._p_changed is
set. This means all data in the list is part of the
transaction. Your database will grow fast.

Try to use btrees. BTrees have conflict resolution
and not the whole "list" needs to be stored if it gets
changed.

Regards,
Thomas


_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list - ZODB-Dev@xxxxxxxx
http://mail.zope.org/mailman/listinfo/zodb-dev



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise