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

Minimize the cost calculation for queries using reference restrictions.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.2, 1.2
    • None
    • core, query

    Description

      According to the javadocs (QueryIndex) minimum cost for index is 1. Currently ReferenceIndex returns this minimum value, when it can be used for the query.

      But even then cost for remaining indexes is still calculated. We could skip cost calculation of remaining indexes if we achieved the minimum cost already.
      It will speed up all queries which can leverage the reference Index.

      Example query:

      SELECT * FROM [nt:base] WHERE PROPERTY([rep:members], 'WeakReference') = '345bef9b-ffa1-3e09-85df-1e03cfa0fb37'

      Attachments

        1. oak-2777.patch
          2 kB
          Przemyslaw Pakulski

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              ppakulski Przemyslaw Pakulski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: