--On 24. Juni 2006 23:04:34 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> 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
pgp2egSILJIcM.pgp
Description: PGP signature
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
