Author: thomasm
Date: Tue Feb 25 08:07:23 2014
New Revision: 1571606
URL: http://svn.apache.org/r1571606
Log:
OAK-1372 XPath queries with both path and property restrictions are slow
(documentation)
Modified:
jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/xpath.txt
Modified:
jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/xpath.txt
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/xpath.txt?rev=1571606&r1=1571605&r2=1571606&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/xpath.txt
(original)
+++
jackrabbit/oak/trunk/oak-core/src/test/resources/org/apache/jackrabbit/oak/query/xpath.txt
Tue Feb 25 08:07:23 2014
@@ -58,7 +58,7 @@ select [jcr:path], [jcr:score], *
and [jcr:primaryType] = 'nt:folder'
/* xpath ... */
-# property names with missing @
+# use the optimal join order (OAK-1372)
xpath2sql /jcr:root/testroot//b/c/d/*
[@jcr:uuid='1' or @jcr:uuid='2']
@@ -78,6 +78,8 @@ select d.[jcr:path] as [jcr:path], d.[jc
or d.[jcr:uuid] = '2')
/* xpath ... */
+# property names with missing @
+
xpath2sql /jcr:root/test/*[@a='1' and b='2'
and jcr:contains(c, '3')
and jcr:contains(., '4')