jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meteata...@apache.org
Subject svn commit: r1419275 - /jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java
Date Mon, 10 Dec 2012 09:07:13 GMT
Author: meteatamel
Date: Mon Dec 10 09:07:12 2012
New Revision: 1419275

URL: http://svn.apache.org/viewvc?rev=1419275&view=rev
Log:
Added branch id to the index to speed up branch retrievals

Modified:
    jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java

Modified: jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java?rev=1419275&r1=1419274&r2=1419275&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java
(original)
+++ jackrabbit/oak/trunk/oak-mongomk/src/main/java/org/apache/jackrabbit/mongomk/impl/MongoNodeStore.java
Mon Dec 10 09:07:12 2012
@@ -219,6 +219,7 @@ public class MongoNodeStore implements N
         DBCollection commitCollection = getCommitCollection();
         DBObject index = new BasicDBObject();
         index.put(MongoCommit.KEY_REVISION_ID, 1L);
+        index.put(MongoCommit.KEY_BRANCH_ID, 1L);
         DBObject options = new BasicDBObject();
         options.put("unique", Boolean.TRUE);
         commitCollection.ensureIndex(index, options);
@@ -240,6 +241,7 @@ public class MongoNodeStore implements N
         DBObject index = new BasicDBObject();
         index.put(MongoNode.KEY_PATH, 1L);
         index.put(MongoNode.KEY_REVISION_ID, 1L);
+        index.put(MongoCommit.KEY_BRANCH_ID, 1L);
         DBObject options = new BasicDBObject();
         options.put("unique", Boolean.TRUE);
         nodeCollection.ensureIndex(index, options);



Mime
View raw message