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

Query engine is slow when using many "or" constraints

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 1.0.1, 1.0.2
    • 1.0.4, 1.1.0
    • query
    • None

    Description

      For queries with many (300 or so) "or" constraints of the form "x = 1 or x = 2 or x = 3", the query engine uses quite a lot of CPU time. According to profiling data, this is due to using "toString()" too often, and "Sets.union" (com.google.common.collect.Sets).

      The Oak 1.0 branch is affected most, not sure about trunk.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: