[Zope] acl_users folder > 25000

Dieter Maurer dieter at handshake.de
Sat Jun 14 15:03:18 EDT 2008


Kees de Brabander wrote at 2008-6-5 15:44 +0200:
> ...
>The intended application actually is an election. It is a one time thing.
>Every member is using this application once, and presumably not all of them.
>Would it still be unwise then to put these 25000 accounts in an ordinary
>acl_users folder?

The standard UserFolder stores all data directly in itself -- i.e.
without using persistent subobjects. Storing 25.000 accounts in it
may give you quite a big object -- about 0.5 to 1 Mb.

Nevertheless, it might work for you. Initial access is proably not
that fast -- but after that, the object is probably in the cache.

Otherwise, a slight modification to the UserFolder would suffice
to let is use persistent subobjects: store the user data
not in a dict but in an "BTrees.OOBTree.OOBTree". You would
derive from the standard one and use a different storage in
your derived class.



-- 
Dieter


More information about the Zope mailing list