Sun Java System Calendar Server 6.3 管理指南

Procedure透過建立索引提昇搜尋效能

  1. 若要確定是否可以透過建立索引提昇行事曆搜尋效能,請嘗試以下 LDAP 指令:


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

    其中 base 為 Calendar Server 的使用者和資源資料所在的目錄伺服器的 LDAP 基底 DN,user 為一般使用者可在搜尋對話方塊中輸入的值。

    測試表明,如果包含 60,000 個項目,在沒有為 icsCalendarOwned 建立索引的情況下,上述搜尋大約需要 50 到 55 秒鐘。而建立索引後,上述搜尋僅需大約 1 到 2 秒鐘。

  2. 透過執行 comm_dssetup.pl 為適當的 LDAP 屬性建立索引,或至少為 icsCalendarOwned 建立索引。

    comm_dssetup.pl 為此屬性和很多其他屬性建立索引,以用多種方法提昇效能。如果您尚未執行 comm_dssetup.pl 或執行了卻未執行建立索引,則可以再次執行該公用程式或使用 Directory Server 工具建立索引。

    如需有關 comm_dssetup.pl 如何建立索引,請參閱「Sun Java System Communications Suite 5 Installation and Configuration Guide」中的「Attribute Indexes」。

    如需有關增加目錄伺服器索引的資訊,請參閱 Directory Server 文件,位於:

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