[ZODB-Dev] Re: Database size increase on commit()
Jürgen Kartnaller
juergen at kartnaller.at
Thu Nov 22 12:23:17 EST 2007
tsmiller wrote:
> Thanks. The changes that you suggested work. I think that what I did not
> see is that one key = one btree. I was trying to store multible stores
> under a single btree ie..
> dbRoot['books'] = bTree.OOBTree()
> dbRoot['books']['store1'] = {}
> dbRoot['books']['store2'] = {}
> dbRoot['books']['store3'] = {}
> etc...
> I was thinking that you would have a single btree that kept everything. But
> it looks like I have to do the following, which will mean that I will have
> many btrees in my program. Is this correct thinking?
> dbRoot['books']['store1'] = bTree.OOBTree()
> dbRoot['books']['store2'] = bTree.OOBTree()
> dbRoot['books']['store3'] = bTree.OOBTree()
>
> So is it correct that you have (one key = one bTree) relationship?
Right
Instead of using dicts you use btrees.
More information about the ZODB-Dev
mailing list