[ZODB-Dev] concurrent list modification problems

Dieter Maurer dieter at handshake.de
Thu May 20 15:18:41 EDT 2004


Diez B. Roggisch wrote at 2004-5-20 00:01 +0200:
> ...
>My data is basically structured as two-level tree - parent and one level of 
>childs. So I keep the childs in a PersistentList. The reason for using a list 
>was that I wanted the childs to be kept in insertion order so I can use their 
>index as unique key and enumerate them in a defined order.
>
>But I had to find that when two threads acces their copy of a parent that at 
>the time it was instantiated from the connection had a child list like this:

Maybe, you can replace your list with data structure that
supports "Application Level Conflict Resolution" (e.g.
a "BTrees.IOBTree.IOBTree").

You should get considerably less ConflictErrors (though they will not
disappear altogether).

-- 
Dieter



More information about the ZODB-Dev mailing list