You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/04/09 15:30:12 UTC

[jira] [Created] (OAK-2738) Possible StackOverflowException with many "or" conditions

Thomas Mueller created OAK-2738:
-----------------------------------

             Summary: Possible StackOverflowException with many "or" conditions
                 Key: OAK-2738
                 URL: https://issues.apache.org/jira/browse/OAK-2738
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller


For XPath queries with many "or" conditions of the form "@x = 1 or @x = 2 or @x = 3", the converter could throw a StackOverflowException (during the optimization phase).

Such conditions are converted to "x in (1, 2, 3)", however this conversion is recursive and relatively slow. We need to make sure at least 10'000 conditions can be processed efficiently.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)