Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1747

Presence index is not up to date when the server is started

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M7
    • Fix Version/s: 2.0.0-M8
    • Component/s: None
    • Labels:
      None

      Description

      When we start the server the very first time, the initialization tries to load the entries which have an administrative-role AT. It uses the (administrative-role=*) filter, which uses the Presence index. The evaluation done in the backend considers that we have an Long.MAX_INTEGER candidate.

      That will result in a full scan, which is extremely costly when we have a lot of entries.

      We should add an index for the administrative-role, and for some other AT that are loaded in cache at startup.

        Activity

        Hide
        Emmanuel Lecharny added a comment -

        The administrative-role is not indexed. This is why it's not added into the Presence index.

        We should add this index to the default configuration.

        Show
        Emmanuel Lecharny added a comment - The administrative-role is not indexed. This is why it's not added into the Presence index. We should add this index to the default configuration.
        Hide
        Emmanuel Lecharny added a comment -

        Made an improvement

        Show
        Emmanuel Lecharny added a comment - Made an improvement
        Hide
        Emmanuel Lecharny added a comment -

        The administrative-role index has been added into the default configuration

        Show
        Emmanuel Lecharny added a comment - The administrative-role index has been added into the default configuration
        Hide
        Emmanuel Lecharny added a comment -

        Closed all the resolved issues

        Show
        Emmanuel Lecharny added a comment - Closed all the resolved issues

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development