Sun Java System Communications Services 6 2005Q4 Delegated Administrator 指南

提高 Directory Server 索引阈值

要提高 Delegated Administrator 功能(例如进行搜索和显示用户)的性能,可以增加 Directory Server 搜索目录所使用的索引阈值。

当 Directory Server 搜索大量 LDAP 对象时,如果阈值被设置为较低的值,则该索引可能会在搜索完成之前就占用完所有空间。剩余的搜索操作将在不进行索引的情况下执行,这会降低搜索操作的速度。


注意 – 注意 –

仅当您是一名有经验的 Directory Server 管理员时才能执行此操作。


要将索引阈值设置为较高的值,请更改 dse.ldif 文件中的 nssldap-allidsthreshold 选项的值。

此选项可能被设置为如以下所示的值:


nssldap-allidsthreshold: 4000

nssldap-allidsthreshold 设置为一个较高的值。例如


nssldap-allidsthreshold: 200000

有关 All IDs 阈值的详细信息,请参见 Sun Java System Directory Server 管理指南的“编制目录数据索引”中的“管理索引”。 有关 nssldap-allidsthreshold 选项的定义,请参见 Sun Java System Directory Server Administration Reference 的 "Server Configuration Reference" 中的 "Database Configuration Attributes"。