LX0-104 · 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.. To speed up slow, sequential LDAP searches, the most effective approach is to implement proper indexing and rebuild the directory database.
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
(21 responses)- A76% (16)
- B10% (2)
- C10% (2)
- D5% (1)
Why each option
To speed up slow, sequential LDAP searches, the most effective approach is to implement proper indexing and rebuild the directory database.
Adding correct indexes in `slapd.conf` improves search performance by creating optimized data structures that allow the LDAP server to quickly locate entries without scanning the entire directory. After defining new indexes, `slapindex` must be run with the server stopped to rebuild the database files and apply the new indexing scheme.
Refining the search filter might reduce the result set but does not fundamentally speed up the search processing if the underlying database lacks proper indexing.
The `-binarytreesearch` option is not a standard or commonly used `ldapsearch` option for improving server-side search performance; it's likely a misdirection or non-existent option in this context.
The `-fuzzy` option is not a standard `ldapsearch` option for improving search performance; it implies a less precise search, which is unrelated to sequential processing speed.
Concept tested: LDAP server indexing for performance
Source: https://www.openldap.org/doc/admin24/tuning.html
Topics
Community Discussion
No community discussion yet for this question.