[Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

Andreas Jung lists at zopyx.com
Fri Oct 19 04:18:11 EDT 2007



--On 19. Oktober 2007 10:03:43 +0200 Joachim Schmitz <js at aixtraware.de> 
wrote:

> Hi,
>
> If one iterates over the result of a portal_catalog search, for each
> brain there are about 8 datetime objects loaded (one for each dateindex),
> which quickly fills the memory.
> how can I access only the brain id, or postpone the loading of the
> datetime objects until I really access them ?


This would work only if the DateTime objects would be persistent subobjects.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-cmf/attachments/20071019/dfaf87b5/attachment.bin


More information about the Zope-CMF mailing list