[ZODB-Dev] PersistentMapping good for large numbers of objects?

Toby Dickenson tdickenson at geminidataloggers.com
Thu Jul 17 15:36:18 EDT 2003


On Thursday 17 July 2003 13:36, Stefan H. Holek wrote:

> How slow would mybtree.keys() be in case of 20,000 objects? Slower than
> with a plain dict or PersistentMapping? Should a separate list be kept,
> probably, along the lines of BTrees.Length?

A seperate list of 10 byte keys is a 200k object. Every time the list changes 
it uses up 200k of disk space, and the same amount has to be transferred over 
the network to every ZEO client. Any change to the list will cause a 
conflict.

None of that matters if you never change the content of your btree.... do you?

-- 
Toby Dickenson - http://www.geminidataloggers.com/people/tdickenson

Would you like my job? http://www.geminidataloggers.com/jobs for Software
Engineering jobs at Gemini Data Loggers in Chichester, West Sussex, England




More information about the ZODB-Dev mailing list