Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2682

Enable counter on HTreeMap used by LocalEnumeratedIndex

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.4.0.Final
    • Fix Version/s: 5.4.1.Final
    • Component/s: Indexing
    • Labels:
      None

      Description

      LocalEnumeratedIndex uses MapDB API DB.getHashSet to create HashSets. This method does not activate the counter on the created HTreeMap which leads to very poor performance when calling LocalEnumeratedIndex.estimateTotalCount() since it will requires to scan the whole collection.

      The HTreeMap should be created differently by the LocalEnumeratedIndex to enable the counter.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                amischler Antoine Mischler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: