lib ldb key_value: Pass index cache size
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 1 Apr 2019 01:10:10 +0000 (14:10 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Apr 2019 06:40:16 +0000 (06:40 +0000)
commit8f7bf13b96841b38cdc60765a5465be940e1477b
tree777ed30a42498fce95aa4c9842a76ae1bb2f4af9
parent267cc71f5d55f0c45cde8e60ac1529f6a39d776f
lib ldb key_value: Pass index cache size

Pass the index cache size to ldb_kv_index_transaction_start.  This will
allow it to be set for reindex and join operations, where the current
defaults result in a significant performance penalty on large databases.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_key_value/ldb_kv.c
lib/ldb/ldb_key_value/ldb_kv.h
lib/ldb/ldb_key_value/ldb_kv_index.c
lib/ldb/tests/ldb_key_value_test.c [new file with mode: 0644]
lib/ldb/wscript