]> git.sur5r.net Git - openldap/commitdiff
Add support for 64 bit index hashing
authorHoward Chu <hyc@openldap.org>
Tue, 4 Dec 2012 10:53:59 +0000 (02:53 -0800)
committerHoward Chu <hyc@openldap.org>
Tue, 4 Dec 2012 10:53:59 +0000 (02:53 -0800)
doc/man/man5/slapd-config.5
doc/man/man5/slapd.conf.5

index 96959a9651437c621e6b3186825c395fa624ba4e..9201eccdec31c385eb3e7af70f05a245eadea9e7 100644 (file)
@@ -470,6 +470,16 @@ feature.  The default is 0. You may also want to set the
 .B olcWriteTimeout
 option.
 .TP
+.B olcIndexHash64: { on | off }
+Use a 64 bit hash for indexing. The default is to use 32 bit hashes.
+These hashes are used for equality and substring indexing. The 64 bit
+version may be needed to avoid index collisions when the number of
+indexed values exceeds ~64 million. (Note that substring indexing
+generates multiple index values per actual attribute value.)
+Indices generated with 32 bit hashes are incompatible with the 64 bit
+version, and vice versa. Any existing databases must be fully reloaded
+when changing this setting. This directive is only supported on 64 bit CPUs.
+.TP
 .B olcIndexIntLen: <integer>
 Specify the key length for ordered integer indices. The most significant
 bytes of the binary integer will be used for index keys. The default
index 5750173d791c0d452215b4e5cdb1ac5d6f7c85fc..0d5e36fb2499f4f78155e0fa16078d9fc150b6ac 100644 (file)
@@ -495,6 +495,16 @@ option.
 Read additional configuration information from the given file before
 continuing with the next line of the current file.
 .TP
+.B index_hash64 { on | off }
+Use a 64 bit hash for indexing. The default is to use 32 bit hashes.
+These hashes are used for equality and substring indexing. The 64 bit
+version may be needed to avoid index collisions when the number of
+indexed values exceeds ~64 million. (Note that substring indexing
+generates multiple index values per actual attribute value.)
+Indices generated with 32 bit hashes are incompatible with the 64 bit
+version, and vice versa. Any existing databases must be fully reloaded
+when changing this setting. This directive is only supported on 64 bit CPUs.
+.TP
 .B index_intlen <integer>
 Specify the key length for ordered integer indices. The most significant
 bytes of the binary integer will be used for index keys. The default