directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: Is the AndCursor useful ?
Date Thu, 16 Jun 2011 12:02:08 GMT
On Thu, Jun 16, 2011 at 5:00 PM, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> On 6/16/11 1:18 PM, Kiran Ayyagari wrote:
>>
>> On Thu, Jun 16, 2011 at 3:29 PM, Emmanuel Lecharny<elecharny@gmail.com>
>>  wrote:
>>>
>>> Hi guys,
>>>
>>> just wondering if we need to keep the intermediate AndCursor class ? All
>>> in
>>> all, when building the cursors, if we have a conjonction, we will pick
>>> the
>>> smallest cursor to store it as wrapped into the AndCursor, so I wonder if
>>> it's not a good idea to simply remove this cursor from the equation ?
>>>
>> I don't think so, we do need evaluators also
>
> What for ? Can't we use the underlying cursor's evaluator ?
>
yeap, agree, this indeed speeds up evaluation

OTOH, I prefer to keep a hint about conjunction in the returned cursor
or we can also change AndCursor to not use evaluators
but just as a dumb wrapper (i.e new AndCursor(IndexCursor) )
> --
>
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>



-- 
Kiran Ayyagari

Mime
View raw message