Sun Java System Calendar Server 6.3 Administration Guide

21.2 Improving Calendar Search Performance in a DWP Environment

When you are in a DWP environment, that is, the calendar database is distributed across multiple back-end servers, searching for a calendar in the calendar database can be time consuming. It can be faster to look in the LDAP entry first and find out directly which DWP host the calendar resides on.

This section contains the following topics:

ProcedureTo Enable Calendar Searches to Look at LDAP

To enable calendar searches to look at the LDAP directory first, and the calendar database second, perform the following steps:

  1. Log in as an administrator with configuration privileges.

  2. Stop Calendar Server services by issuing the stop-cal command.

  3. Change to the configuration directory, /etc/opt/SUNWics5/cal/config.

  4. Set the service.calendarsearch.ldap parameter in the ics.conf file to "yes", which is the default, as shown below:


  5. Restart Calendar Services as follows:


    Note –

    If you are allowing anonymous access to public calendars, you might prefer to disable calendar searches from looking at LDAP. In fact, Communications Express expects the parameter value to be “no”.

ProcedureTo Improve Search Performance by Indexing

  1. To determine if the calendar search performance can be improved by indexing, try the following LDAP command:

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

    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 a search dialog in .

    Tests have shown that with 60,000 entries, the above search took about 50-55 seconds without indexing icsCalendarOwned. After indexing, the above search took only about 1-2 seconds.

  2. Index appropriate LDAP attributes, or at least, icsCalendarOwned, by running

    The, indexes this attribute and many others to improve performance in various ways. If you have not run, or ran it but did not perform the indexing, you can run the utility again to do the indexing, or you can use Directory Server tools to perform the indexing.

    For information on how does indexing, see Attribute Indexes in the Sun Java System Communications Suite 5 Installation and Configuration Guide.

    For information about adding directory server indexes, refer to Directory Server documentation found at: