[Zope] Zope catalog query...
Dieter Maurer
dieter@handshake.de
Fri, 24 Jan 2003 23:20:04 +0100
Thierry Florac wrote at 2003-1-24 12:47 +0100:
>
> Hi,
>
> I want to make a "very frequent" query on a ZCatalog.
> Each object in my Zope site is identified with a globally unique ID
> (called oid) which is indexed in my catalog ; sometimes, I can also know
> that the object that I'm looking for is stored in a given path.
>
> So my question is simple : if I know the subpath in which the object is
> stored, is it faster to :
> - make a query only on the oid
This is much faster, because it is a simple lookup in the index.
> - make a query on the oid and path
This is much slower because path searches are quite complicated.
Dieter