zope2/zodb cache size question

Jürgen Herrmann <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Organization XLhost.de GmbH
Message-ID <[email protected]>
hi there!

today i ran a check script which iterates over approx 150000 objects
and does some sanity check calculations on these. during this loop
i saw the zope process use up to about 4.5gb memory. the database 
has ~3.5million objects in it.

i set the zodb cache size for the mount point in question to 10000
objects. obviously this limit is not honoured during one transaction:

connection                     active objects      total objects
...
<Connection at 24c10410>       263104              462834
...

so two questions here:
- would the byte-limited zodb cache setting help here?
- if no - how can i iterate over a big set of objects without
  forcing them to stay in the cache for the whole transaction?
  after all i just need each object once during the iteration.

thanks in advance and best regards,
jürgen herrmann
-- 
>> XLhost.de - eXperts in Linux hosting ® <<

XLhost.de GmbH
Jürgen Herrmann, Geschäftsführer
Boelckestrasse 21, 93051 Regensburg, Germany

Geschäftsführer: Volker Geith, Jürgen Herrmann
Registriert unter: HRB9918
Umsatzsteuer-Identifikationsnummer: DE245931218

Fon:  +49 (0)800 XLHOSTDE [0800 95467833]
Fax:  +49 (0)800 95467830

WEB:  http://www.XLhost.de
IRC:  #[email protected]

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.