|
Re: concurrent list modification problems: msg#00097web.zope.zodb
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> |
|---|---|---|
| Previous by Date: | DirectoryStorage 1.1.9: 00097, Toby Dickenson |
|---|---|
| Next by Date: | conflict resolution for PersistentList: 00097, Diez B. Roggisch |
| Previous by Thread: | concurrent list modification problemsi: 00097, Diez B. Roggisch |
| Next by Thread: | concurrent list modification problems: 00097, Diez Roggisch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |