27 Sep
2003
27 Sep
'03
4:08 p.m.
use objectIds() -aj --On Samstag, 27. September 2003 23:21 Uhr +0800 Choo Zhi Min <zhimin@iss.nus.edu.sg> wrote:
Hi,
I want to get the object count in a folder (Zope/Plone folder). Doing len(myfolder.objectValues()) will load every object in that folder into memory while all I need is just a count of them. Any better way to do this to avoid unnecessary memory usage?
Thanks! Zhi Min
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )