[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Long searches on non-existent attributes

Paul Makepeace wrote:
> This is OpenLDAP v1.1 running with schemacheck off (is this the cause?).

If you have schemacheck off, then this is the correct behaviour.  It may
be nasty, but it is the only method guaranteed to provide the correct
answer (the empty set in this case, but there is no way to know).

It might be, however, that even if schemacheck on you see the same thing,
I don't remember seeing slapd optimizing for this case.

What essentially happens is that you make a search on an attribute, slapd
sees no index available for it and starts traversing the whole database.