mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
73c8566d95
When a attribute is marked unique we know that if we find a match it will be the only possible match. This means that in a list of subtrees connected by an &, it is best to first load the index values for the unique entries, as if they find something then we know we won't have to look any further. This helps with searches like this: (&(objectclass=user)(samaccountname=tridge)) the old code would first have loaded the very large index for the objectclass=user attribute, and then loaded the single entry for samaccountname=tridge. Now we load the samaccountname=tridge entry first, notice that it gives us a single result, and stop, thereby skipping the load of the objectclass=user index record completely. |
||
---|---|---|
.. | ||
ldb_cache.c | ||
ldb_index.c | ||
ldb_pack.c | ||
ldb_search.c | ||
ldb_tdb_wrap.c | ||
ldb_tdb.c | ||
ldb_tdb.h |