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

Query engine index selection tweaks: shortcut and hint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.7.6, 1.8.0
    • query

    Description

      This issue covers 2 different changes related to the way the QueryEngine selects a query index:

      Firstly there could be a way to end the index selection process early via a known constant value: if an index returns a known value token (like -1000) then the query engine would effectively stop iterating through the existing index impls and use that index directly.

      Secondly it would be nice to be able to specify a desired index (if one is known to perform better) thus skipping the existing selection mechanism (cost calculation and comparison). This could be done via certain query hints [0].

      [0] http://en.wikipedia.org/wiki/Hint_(SQL)

      Attachments

        Issue Links

          Activity

            People

              thomasm Thomas Mueller
              stillalex Alex Deparvu
              Votes:
              12 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: