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

Cost estimation for path tranformable queries is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.11, 1.8.0
    • Component/s: lucene
    • Labels:
      None

      Description

      OAK-6735 introduced cost calculation based on number of documents indexed per term. But, it miscalculates cost as 0 for relative properties which are queried on an nt:base based index while tranforming paths

      e.g. index:

      + index
        + indexRules/nt:base/properties/foo
            - name = foo
            - propertyIndex = true
      

      and query

      SELECT * FROM [nt:base] WHERE [a/foo] = 'bar'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                catholicon Vikas Saurabh
                Reporter:
                catholicon Vikas Saurabh
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: