Sun Java Communications Suite 5 Release Notes

Indexing the LDAP Directory Server Attributes

To improve performance when Calendar Server accesses the LDAP directory server, add indexes to the LDAP configuration file for various attributes.

The configuration program, comm_dssetup.pl, will optionally do the indexing for you.


Tip –

To see the performance difference indexing can give you, perform the following test:

  1. Before indexing, time how long it takes to run the following LDAP command:


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

    Where base is the LDAP base DN of the directory server where the user and resource data for Calendar Server is located, and user is the value that an end user can enter in the Calendar Search dialog.

  2. Run indexing for icsCalendarOwned.

  3. Again run the following LDAP command, and time it:


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

    Where base is the LDAP base DN of the directory server where the user and resource data for Calendar Server is located, and user is the value that an end user can enter in the Calendar Search dialog.

  4. Compare the times. There should be a measurable time difference.