Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3600

Cache property index definitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.9
    • None
    • property-index

    Description

      At the moment, most of the time of the execution plan calculation (often 70%) is spent in PropertyIndex.getCost. Therefore, it would make sense to cache the property index definitions in a map<property name, plan> which avoids all unnecessary traversal/repository operations.

      This cache could either be attached to the session or expire after a few seconds because the problem is not that createPlan is slow itself, but is just called too often.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joelrich Joel Richard
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: