Server caches
LDAP caches are fast storage buffers in memory used to store LDAP information such as queries, answers, and user authentication for future use. Tuning the LDAP caches is crucial to improving performance.
An LDAP search that accesses the LDAP cache can be faster than one that requires a connection to DB2®, even if the information is cached in DB2. For this reason, tuning LDAP caches can improve performance by avoiding calls to the database. The LDAP caches are especially useful for applications that frequently retrieve repeated cached information.
The following sections discuss each of the LDAP caches and demonstrate how to determine and set the best cache settings for your system.
- Attribute cache
The attribute cache has the advantage of being able to resolve filters in memory rather than in the database. It also has the advantage of being updated each time an LDAP add, delete, modify, or modrdn operation is performed.
- Filter cache
When the client issues a query for data and the query cannot be resolved in memory by the attribute cache manager, the query goes to the filter cache. This cache contains cached entry IDs.
- Entry cache
The entry cache contains cached entry data. Entry IDs are sent to the entry cache.
- ACL cache
The ACL cache contains access control information such as entry owner and entry permissions for recently accessed entries. This cache is used to improve performance of evaluating access to add, delete, modify or search for entries.
Parent topic:
Directory Server concepts
Related concepts
Performance tasks