[Zope-dev] Re: ape performance

Shane Hathaway shane at zope.com
Mon Sep 8 10:43:04 EDT 2003


Seb Bacon wrote:
> Hi,
> 
> I'm trying to use Ape for a photo album - the idea being that I just 
> drop new photos where I normally do on the filesystem, and Zope provides 
> a thumbnails-bells-and-whistles view onto it.
> 
> Performance is extremely poor: viewing the root of the hierarchy causes 
> *all* descendent objects to be loaded first (about 3000).
> 
> Is there a way I can avoid or mitigate this problem?

Yes.  Right now, folders are using simple OID references, which means 
that when you load a folder you also have to load a stub for every 
subobject.  If we instead pass (OID, class) tuples to the deserializer, 
it will be much more efficient.

Shane




More information about the Zope-Dev mailing list