Sun Java System Calendar Server 6 2005Q4 管理指南

Procedure通过创建索引提高搜索性能

步骤
  1. 要确定是否可以通过创建索引提高日历搜索性能,请尝试使用以下 LDAP 命令:


    ldapsearch -b "base" "(&(icscalendarowned=*user*)
       (objectclass=icsCalendarUser))"

    其中,base 是用户和 Calendar Server 资源数据所在的 Directory Server 的 LDAP 基本 DN,user 是最终用户可以在搜索对话框中输入的值。

    测试表明,如果没有为 icsCalendarOwned 创建索引,使用上述搜索功能搜索 60,000 个条目大约需要 50 到 55 秒。而创建索引后,上述搜索只需要大约 1-2 秒时间。

  2. 通过运行 comm_dssetup.pl 为相应的 LDAP 属性或仅仅为 icsCalendarOwned 创建索引。

    comm_dssetup.pl 将为该属性和许多其他属性创建索引,以提高各方面的性能。如果尚未运行 comm_dssetup.pl,或者已运行但尚未执行创建索引操作,则可以再次运行此实用程序来创建索引,也可以使用 Directory Server 工具来执行创建索引操作。

    有关如何使用 comm_dssetup.pl 创建索引的信息,请参见属性索引

    有关添加目录服务器索引的信息,请参阅以下位置处的 Directory Server 文档:

    http://docs.sun.com/coll/1316.1http://docs.sun.com/coll/1389.1