[Zope] ZCatalog Strategy

Chris Withers chris at simplistix.co.uk
Thu Mar 23 02:29:45 EST 2006


Mark Gibson wrote:
> Does the cost of calling getObject() for a dozen objects justify 
> creating a new metadata field?

No.

> More generally how does a large amount of metadata in the catalog affect 
> performance of queries?

Badly ;-)

> The wisdom of those more knowledgeable than me would be appreciated.

As a rule of thumb, if you need a catalog search to return more than 
10-20 objects and you need to do something with an attribute of all the 
objects returned, then whack it in the metadata. If you only need it for 
the 10-20 objects, then do getObject and get the attribute from the object.

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list