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

Query: use "union" for complex XPath queries that use "or"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • None
    • None

    Description

      The following XPath query is converted to a union, however there is still an "or" in the converted query, which means the query still can't use all indexes and has to traverse the whole repository:

      //*[(((@jcr:primaryType = 'nt:unstructured') 
      and (@resources = '/data' or @resolved = '/data'))
      or (@content = '/data' and (@jcr:primaryType = 'nt:folder'))) ] 
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: