jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1402137 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java
Date Thu, 25 Oct 2012 13:04:57 GMT
Author: thomasm
Date: Thu Oct 25 13:04:56 2012
New Revision: 1402137

URL: http://svn.apache.org/viewvc?rev=1402137&view=rev
Log:
OAK-400 The query engine should pick the index with the lowest cost

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java?rev=1402137&r1=1402136&r2=1402137&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryEngineImpl.java
Thu Oct 25 13:04:56 2012
@@ -115,6 +115,7 @@ public class QueryEngineImpl {
         for (QueryIndex index : getIndexes()) {
             double cost = index.getCost(filter);
             if (cost < bestCost) {
+                bestCost = cost;
                 best = index;
             }
         }



Mime
View raw message