nerdexam
Linux_Foundation

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.

Submitted by valeria.br· Apr 18, 2026Service Configuration

Question

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?

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)
  • A
    72% (21)
  • B
    17% (5)
  • C
    3% (1)
  • D
    7% (2)

Why each option

This question addresses how to improve slow, sequential LDAP searches by optimizing the server configuration.

AAdd the correct indexes in slapd.conf, stop the server and run slapindex.Correct

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.

BRefine the search filter.

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.

CUse the -binarytreesearch option with ldapsearch.

The `-binarytreesearch` option is not a standard or documented `ldapsearch` client option for optimizing server-side search performance.

DUse the -fuzzy option with ldapsearch.

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

#LDAP#Indexing#Performance Tuning#slapd

Community Discussion

No community discussion yet for this question.

Full LFCS Practice