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

Re: (ITS#7741) Incorrect indexing of entryDN



raphael.ouazana@linagora.com wrote:
> Full_Name: Raphael Ouazana
> Version: 2.4.26
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (88.173.78.196)
>
>
> Hi,
>
> I have a pretty big database (hdb, 300 000 entries) with low memory (1/4 GB).
> If I try a search with scope sub, base dc=suffix, and filter
> (entryDN=uid=nonexisting,dc=people,dc=suffix), the search is very slow (I
> stopped after some minutes).
> But if I try with scope base, base uid=nonexisting,dc=people,dc=suffix, filter
> (objectClass=*), the result is immediate, telling there is no such entry.
>
> I have read that since 2.4.13 entryDN is indexed by dn2id, but it doesn't seem
> to be the case.

Only positive results from the index were being used.

> Regards,
> Raphaël Ouazana.
>
> PS : my test database run OpenLDAP 2.4.26 only, but I have not seen any change
> in the area of entryDN indexing. Will try with 2.4.37 if you think something has
> changed.

Nothing has changed in this section of code in 5 years. Fixed now in master.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/