Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
Description
XPath queries with "or" are converted to union, even if there is an "order by" clause. In such cases, sorting is done in memory. See also OAK-2022.
For some queries, it might be better to not use union, but use an ordered index instead. This is tricky to decide up-front, but it would be possible to estimate the cost of both variants and pick the one that seems better.
Attachments
Issue Links
- is related to
-
OAK-2022 XPath queries with "order by" are never converted to "union"
- Closed