]> git.ipfire.org Git - thirdparty/samba.git/commit
schema: Use ldb_schema_set_override_indexlist for faster index selection
authorAndrew Bartlett <abartlet@samba.org>
Thu, 30 Mar 2017 00:25:35 +0000 (13:25 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 May 2017 04:34:27 +0000 (06:34 +0200)
commite7c36a7142198c9a8efb769627af4488e0bb5dc0
tree8848d0e3b0e4d0514cc3535b0f76d0bd3d67c1ef
parent13e09c72cd41cd5cd44bd9e4e27df8e0e1d47379
schema: Use ldb_schema_set_override_indexlist for faster index selection

This allows Samba to provide a binary tree lookup for the existance of an index on the attribute
rather than the O(n) lookup that was being done for each attribute during a search or modify

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/schema/schema_init.c
source4/dsdb/schema/schema_set.c