Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2162

Searching for users using ObjectClass=person takes long

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-M20
    • 2.0.0.AM27
    • search
    • None

    Description

      When we do the below query the result takes long. Around 10-50 seconds.

      Search base: ou=users,dc=xxx,dc=fi
      Filter (&(cn=USERNAME)(objectClass=person))
      Scope: Subtree

      However the below query returns the result immediately
      Search base: ou=users,dc=xxx,dc=fi
      Filter (&(cn=USERNAME)(objectClass=*))
      Scope: Subtree

      Looking at the Partition settings it has Indexed attributes ObjectClass and cn.

      First both queries took long. Then we added cn to the index and rebooted apacheDS and the second query got fast.

      It seems like a bug that using ObjectClass in the query makes it slow all tough it is in the index.

      It seems something similar was reported before DIRSERVER-2048, but it says it's fixed in M20 which we are using.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmrpet John Peter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: