logo       

Re: concurrent list modification problems: msg#00097

web.zope.zodb

Subject: Re: concurrent list modification problems

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

_______________________________________________
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