mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
When using BDB_IDL_MULTI, there are no longer any issues with storing
large IDLs. Concurrency is improved by using as small a page size as possible. So, set the pagesize back to the default 4096 in this case.
This commit is contained in:
parent
ac2cd34aaf
commit
a19a5d8c15
1 changed files with 8 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
||||||
LDAP_BEGIN_DECL
|
LDAP_BEGIN_DECL
|
||||||
|
|
||||||
#define BDB_FILTER_INDICES 1
|
#define BDB_FILTER_INDICES 1
|
||||||
/* #define BDB_IDL_MULTI 1 */
|
#define BDB_IDL_MULTI 1
|
||||||
|
|
||||||
#define DN_BASE_PREFIX SLAP_INDEX_EQUALITY_PREFIX
|
#define DN_BASE_PREFIX SLAP_INDEX_EQUALITY_PREFIX
|
||||||
#define DN_ONE_PREFIX '%'
|
#define DN_ONE_PREFIX '%'
|
||||||
|
|
@ -50,10 +50,17 @@ LDAP_BEGIN_DECL
|
||||||
* fit into a single database page, more is better. 64K is BDB's
|
* fit into a single database page, more is better. 64K is BDB's
|
||||||
* upper bound. The same issues arise with IDLs in the index databases,
|
* upper bound. The same issues arise with IDLs in the index databases,
|
||||||
* but it's nearly impossible to avoid overflows there.
|
* but it's nearly impossible to avoid overflows there.
|
||||||
|
*
|
||||||
|
* When using BDB_IDL_MULTI, the IDL size is no longer an issue. Smaller
|
||||||
|
* pages are better for concurrency.
|
||||||
*/
|
*/
|
||||||
#ifndef BDB_PAGESIZE
|
#ifndef BDB_PAGESIZE
|
||||||
|
#ifdef BDB_IDL_MULTI
|
||||||
|
#define BDB_PAGESIZE 4096 /* BDB's original default */
|
||||||
|
#else
|
||||||
#define BDB_PAGESIZE 16384
|
#define BDB_PAGESIZE 16384
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BDB_INDICES 128
|
#define BDB_INDICES 128
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue