From: Kurt Zeilenga Date: Wed, 3 Nov 1999 01:05:19 +0000 (+0000) Subject: Don't create a subtree dn index. X-Git-Tag: OPENLDAP_REL_ENG_1_2_8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae3c8ab5d76164ca861468d8f772886ab24dc65;p=thirdparty%2Fopenldap.git Don't create a subtree dn index. --- diff --git a/CHANGES b/CHANGES index de50c30f5a..e093ac9bd3 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Changes included in OpenLDAP 1.2 Release Engineering Added TCP_NODELAY support Change slapd to apply ACL to lastmod attributes Change slapd.conf default referral + Disable DN subtree indexing Build Environment Support using short as LDAP_INT4 Documentation diff --git a/servers/slapd/back-ldbm/init.c b/servers/slapd/back-ldbm/init.c index 36ae9daa8f..79d8ca6229 100644 --- a/servers/slapd/back-ldbm/init.c +++ b/servers/slapd/back-ldbm/init.c @@ -54,8 +54,16 @@ ldbm_back_init( argv[ 2 ] = NULL; attr_syntax_config( "ldbm dn initialization", 0, 2, argv ); argv[ 0 ] = "dn"; +#ifdef SLAPD_DN_SUBSTRING_INDEX + /* + * this is generally too expensive on larger servers and not + * effective on small servers. + */ argv[ 1 ] = ch_strdup( "sub,eq" ); - argv[ 3 ] = NULL; +#else + argv[ 1 ] = ch_strdup( "eq" ); +#endif + argv[ 2 ] = NULL; attr_index_config( li, "ldbm dn initialization", 0, 2, argv, 1 ); free( argv[ 1 ] ); argv[ 0 ] = "id2children"; @@ -64,7 +72,7 @@ ldbm_back_init( attr_index_config( li, "ldbm id2children initialization", 0, 2, argv, 1 ); argv[ 0 ] = "objectclass"; - argv[ 1 ] = ch_strdup( "pres,eq" ); + argv[ 1 ] = ch_strdup( "eq" ); argv[ 2 ] = NULL; attr_index_config( li, "ldbm objectclass initialization", 0, 2, argv, 1 );