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

Jean-Francois.Doyon at CCRS.NRCan.gc.ca Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Fri May 28 14:00:42 EDT 2004


Duh, well yes that's a start ...

But how would I make sure I do this for all threads? Running this once would
load/cache the objects only in the thread in ran in.

That's the hard part I think :)

J.F.

-----Original Message-----
From: Jean Jordaan [mailto:jean at upfrontsystems.co.za]
Sent: May 28, 2004 8:18 AM
To: Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Cc: zope at zope.org
Subject: Re: [Zope] Help! Serious performance problem! (PTS? Zeo? SMP?)


> 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