[Date Prev][Date Next]
Re: Long searches on non-existent attributes
At 06:15 PM 4/15/99 +0200, Julio Sánchez Fernández wrote:
>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,
Schema checking is applied only to LDAP write operations. It's
not applied to LDAP read/compare operations nor to non-LDAP
operations writes (ldif2ldbm, operational attribute writes, etc.).
>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.