[Zope-Coders] Re: [ZCM] [ZC] 362/ 3 Comment "Indexes not used in the catalog"
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 24 Apr 2002 11:07:17 +0100
(recipients list trimmed)
On Tue, 23 Apr 2002 19:00:50 -0400, "Collector: Zope Bugs, Features,
and Patches ..." <zope-coders@zope.org> wrote:
>One of us is missing the other's point. The current optimization
>assumes that an index is *only* interested in a request key that is
>the same as the index id.
I think thats imprecise. The assumption is that the the value whose
key is the same as his id is required to 'enable' that index. An index
can look at other elements of the request dictionary, but only if it
has been 'enabled'. Once 'enabled', it could completely ignore the
value which caused it to be 'enabled' and only look at other values.=20
>We can make this a requirement, but if we do so, we need to advertise
>it.=20
yes
>> - it is too much overhead to perform queries on indexes that
>> are not involved.=20
>Why? Have you measured this?=20
I have some plugin indexes that are *very* slow. Fortunately I dont
reference them in most queries.
Toby Dickenson
tdickenson@geminidataloggers.com