[Zope-dev] Specialist/Rack scalability

Steve Alexander steve@cat-box.net
Sun, 21 Jan 2001 20:34:16 +0000


Michael Bernstein wrote:

>
> There is some question in my mind if
> accessing any attribute (such as the thumbnail version)
> causes all attributes to be loaded into memory. If so,
> displaying a list of images with thumbnails may result in
> many large objects being loaded into memory.

Make sure that each large attribute is an instance of a class that 
derives from Persistent.

Of course, if this is a ZPatterns application, you'd probably want to 
have the images in their own Rack, and use an Attribute Provider on your 
Photo objects that gets the images for a Photo as needed. The Photo 
(with meta-data) and the images are entirely different objects, accessed 
via different Racks, via different Specialists.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net