[ZODB-Dev] The database root: It's a trap!

Jim Fulton jim at zope.com
Wed May 12 14:08:51 EDT 2010


On Wed, May 12, 2010 at 2:00 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> Jim Fulton wrote:
>>
>> A. Change ZODB so that new databases have BTrees as root objects.
>>
>>   This has the advantage that BTrees are scalable.  It has a number
>>   of down sides:
>>
>>   - BTrees should only be used when keys are known to have a stable
>>     ordering.  If we had a scalable hash data structure, that would
>>     be better.
>>
>>   - This encourages mistake 2 above.
>>
>> B. Change ZODB so that the root object is a variant of persistent
>>   mapping that either refuses to store more than a small number of
>>   objects, or at least issues a warning when more than a small
>>   number of objects is stored.
>
> C. I'd really like to be able to configure what the root object is as
> database creation time. That way it can be application specific.

That sounds reasonable, but doesn't address the default behavior.

Jim

-- 
Jim Fulton


More information about the ZODB-Dev mailing list