LDB_SCOPE_ONELEVEL without full traversal?
simo
idra at samba.org
Tue Dec 5 17:47:14 GMT 2006
On Tue, 2006-12-05 at 18:32 +0100, Volker Lendecke wrote:
> Hi!
>
> Right now I'm looking at putting the registry into ldb. One
> operation that I need fast is a LDB_SCOPE_ONELEVEL search to
> enumerate keys and values. Looking at the ldb_tdb code to me
> it appears that this boils down to a full scan of the ldb.
> For a large registry this might become a performance issue.
I think actually this is a full DB scan
> Is that assumption right? And if not, what do I have to do
> to get around this tdb scan?
Uhmm maybe we can think of adding parentDN attribute to all objects and
put an index on it. That would make it fast I think.
Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org
More information about the samba-technical
mailing list