[Zope] Searching for and displaying properties

Andreas Jung lists at zopyx.com
Sat Jun 24 11:29:50 EDT 2006



--On 24. Juni 2006 23:04:34 +0800 "Sinang, Danny" <D.Sinang at spi-bpo.com> 
wrote:

>
> wf = context.GeneralWorkflow
> cat = wf.Catalog
>
> jobs = cat.searchResults({'jobname':'ABC12345'})
> for j in jobs:
>     print j.getObject().jobname
>
> return printed
>
> </code>
>
> My only question now is ... How much slower is this solution than using
> the jobname metadata (assuming it worked).

In general: avoid getObject() since it loads the *complete* object from the 
ZODB might raise performance issues for large objects. In general: use 
metadata..but use metadata sparsely...metadata might blow up your catalog.

-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/attachments/20060624/45c8ba11/attachment.bin


More information about the Zope mailing list