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

Support for constraints like: foo = 'X' OR bar = 'Y'

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • core, query
    • None

    Description

      Consider the following query statement:

      SELECT * FROM [nt:base] WHERE [foo] = 'X OR [bar] = 'Y'
      

      Such a query could be fairly efficiently executed against a property index that indexes the values of both "foo" and "bar" properties. However, the query engine doesn't pass such OR constraints down to the index implementations, so we currently can't leverage such an index for this query.

      Attachments

        1. oak-core-1.0.3-OAK-1965-SNAPSHOT.jar
          2.08 MB
          Jukka Zitting

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: