LFCS · Question #433
An administrator notices that searches are being processed sequentially and taking a long time to complete. What should be done to speed up the searches?
The correct answer is A. Add the correct indexes in slapd.conf, stop the server and run slapindex. This question addresses how to improve slow, sequential LDAP searches by optimizing the server configuration.
Question
Options
- AAdd the correct indexes in slapd.conf, stop the server and run slapindex.
- BRefine the search filter.
- CUse the -binarytreesearch option with ldapsearch.
- DUse the -fuzzy option with ldapsearch.
How the community answered
(29 responses)- A72% (21)
- B17% (5)
- C3% (1)
- D7% (2)
Why each option
This question addresses how to improve slow, sequential LDAP searches by optimizing the server configuration.
Adding appropriate indexes for frequently searched attributes in `slapd.conf`, then stopping the server and running `slapindex`, creates specialized data structures that allow the LDAP server to quickly locate entries, transforming slow sequential scans into fast indexed lookups.
Refining the search filter may reduce the number of results, but it does not change the underlying sequential processing method if the relevant attributes are not indexed, thus not fundamentally speeding up search processing for the server.
The `-binarytreesearch` option is not a standard or documented `ldapsearch` client option for optimizing server-side search performance.
The `-fuzzy` option is not a standard or documented `ldapsearch` client option for optimizing server-side search performance.
Concept tested: OpenLDAP indexing for search performance
Source: https://www.openldap.org/doc/admin24/tuning.html#Indexing
Topics
Community Discussion
No community discussion yet for this question.