r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
authorAndrew Tridgell <tridge@samba.org>
Wed, 18 Oct 2006 21:45:46 +0000 (21:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:26 +0000 (14:21 -0500)
commit4b9eee02c4a0c856f16d9f17929e726fb75e051f
treec22d0f46f4d6d549feb4873d3274cc837aab08fe
parentcba142f1ae71b03266210e254c251683846d7fd7
r19402: - use the new tdb_lockall_read() to make ldb_search() more efficient,
  by avoiding chain locks on each tdb_fetch() within the search

- use the tdb_get_seqnum() call to avoid re-reading the @BASEINFO
  record when it hasn't changed.

These speed up the LOCAL-DBSPEED test for ldb from 7k ops/sec to a bit
over 11k ops/sec
(This used to be commit 1347ad254eb8cd12ce22a5a2a37bec0a0ac8dbf1)
source4/lib/ldb/ldb_tdb/ldb_cache.c
source4/lib/ldb/ldb_tdb/ldb_search.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h