use objectIds()

-aj

--On Samstag, 27. September 2003 23:21 Uhr +0800 Choo Zhi Min <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] 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 )






_______________________________________________
Zope-Dev maillist - [EMAIL PROTECTED]
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 )

Reply via email to