jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1528408 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java
Date Wed, 02 Oct 2013 10:12:16 GMT
Author: thomasm
Date: Wed Oct  2 10:12:16 2013
New Revision: 1528408

URL: http://svn.apache.org/r1528408
Log:
OAK-926: MongoMK: split documents, but much earlier (to improve performance, and to better
test the split mechanism)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java?rev=1528408&r1=1528407&r2=1528408&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/NodeDocument.java
Wed Oct  2 10:12:16 2013
@@ -65,18 +65,18 @@ public class NodeDocument extends Docume
      * A size threshold after which to consider a document a split candidate.
      * TODO: check which value is the best one
      */
-    static final int SPLIT_CANDIDATE_THRESHOLD = 32 * 1024;
+    static final int SPLIT_CANDIDATE_THRESHOLD = 8 * 1024;
 
     /**
      * A document size threshold after which a split is forced even if
      * {@link #REVISIONS_SPLIT_OFF_SIZE} is not reached.
      */
-    static final int FORCE_SPLIT_THRESHOLD = 1024 * 1024;
+    static final int FORCE_SPLIT_THRESHOLD = 16 * 1024;
 
     /**
      * Only split off at least this number of revisions.
      */
-    static final int REVISIONS_SPLIT_OFF_SIZE = 1000;
+    static final int REVISIONS_SPLIT_OFF_SIZE = 100;
 
     /**
      * Revision collision markers set by commits with modifications, which



Mime
View raw message