[Zope] Help! Serious performance problem! (PTS? Zeo? SMP?)

Jean Jordaan jean at upfrontsystems.co.za
Fri May 28 08:17:42 EDT 2004


> While I've got your ear ... Is it possible to prefetch objects
> in the threads' object cache?  So that instead of loading
> objects on demand, I could force the loading at start-up?

Iterate over them. Eg.

   for p in context.Catalog(meta_type="whatever"):
     p.getObject()

They should now all be in memory. (I trust I'll be corrected if
I'm talking thru my hat! ;) )

-- 
Jean Jordaan
http://www.upfrontsystems.co.za
     /training   <-- Zope/Plone training!
    /training/af <-- Nie af nie, Afrikaans.




More information about the Zope mailing list