[Zope-DB] ZODB/ZEO question.
chris at simplistix.co.uk
Tue Apr 5 18:56:50 EDT 2005
> Chris, please help me understand how this makes a difference in ZODB.
> I currently store a persistent list in the ZODB as follows:
> root[db_name] = some list
What class do you use for the list?
I suspect root's class isn't too clever, but I can't remember...
> Are you suggesting that I store it in some other, nested dictionary off
> of root, such as:
> root[db_name][listname] = some list
Yes, in particular:
from BTrees.OOBTree import OOBTree
the btrees implementations are specially designed to minimise the kind
of conflict errors you've been experiencing. They work just like python
Simplistix - Content Management, Zope & Python Consulting
More information about the Zope-DB