--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


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.


Attachment: pgp2egSILJIcM.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to