From 3a4bf407b4d6053cd436f11ee97304c325c6a837 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 4 Dec 2012 02:53:59 -0800 Subject: [PATCH] Add support for 64 bit index hashing --- doc/man/man5/slapd-config.5 | 10 ++++++++++ doc/man/man5/slapd.conf.5 | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/doc/man/man5/slapd-config.5 b/doc/man/man5/slapd-config.5 index 96959a9651..9201eccdec 100644 --- a/doc/man/man5/slapd-config.5 +++ b/doc/man/man5/slapd-config.5 @@ -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: Specify the key length for ordered integer indices. The most significant bytes of the binary integer will be used for index keys. The default diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 5750173d79..0d5e36fb24 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -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 Specify the key length for ordered integer indices. The most significant bytes of the binary integer will be used for index keys. The default -- 2.39.5