Counting in the ZODB is more or less a no-go. You will get write
conflicts, and your ZODB will grow (too) quickly. That said, you may
want to look at BTrees.Length for a counter with built-in conflict
resolution.
Stefan
On 1. Jun 2007, at 09:47, Kai Diefenbach wrote:
After reading some
Kai Diefenbach wrote:
Within an adapter I increase a counter (e.g. for every download of an
file) by doing:
self.counter[0] += 1
self.counter is a PersistentList stored as annotation.
Note that if you use a PersistentList, then the entire list must be
written to the