jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1560146 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java
Date Tue, 21 Jan 2014 19:05:26 GMT
Author: alexparvulescu
Date: Tue Jan 21 19:05:26 2014
New Revision: 1560146

URL: http://svn.apache.org/r1560146
Log:
OAK-1343 Performance issue with login()/getGroupMembership() with many users
 - added uuid info to query


Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java?rev=1560146&r1=1560145&r2=1560146&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/reference/ReferenceIndex.java
Tue Jan 21 19:05:26 2014
@@ -42,6 +42,7 @@ import org.apache.jackrabbit.oak.spi.sta
 
 import com.google.common.base.Function;
 import com.google.common.base.Predicate;
+import com.google.common.collect.ImmutableSet;
 
 /**
  * Provides a QueryIndex that does lookups for node references based on a custom
@@ -99,7 +100,7 @@ class ReferenceIndex implements QueryInd
             return newPathCursor(new ArrayList<String>());
         }
         Iterable<String> paths = STORE.query(new FilterImpl(), index + "("
-                + uuid + ")", indexRoot, index, null);
+                + uuid + ")", indexRoot, index, ImmutableSet.of(uuid));
 
         if (!"*".equals(name)) {
             paths = filter(paths, new Predicate<String>() {
@@ -140,4 +141,4 @@ class ReferenceIndex implements QueryInd
         return buff.toString();
     }
 
-}
\ No newline at end of file
+}



Mime
View raw message