[ZODB-Dev] conflict resolution for PersistentList

Thomas Guettler hv at tbz-pariv.de
Tue May 25 06:51:19 EDT 2004


> 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




More information about the ZODB-Dev mailing list