24 Jun
2006
24 Jun
'06
3:29 p.m.
--On 24. Juni 2006 23:04:34 +0800 "Sinang, Danny" <D.Sinang@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