You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by mr...@apache.org on 2016/07/19 06:19:02 UTC

svn commit: r1753335 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java

Author: mreutegg
Date: Tue Jul 19 06:19:02 2016
New Revision: 1753335

URL: http://svn.apache.org/viewvc?rev=1753335&view=rev
Log:
OAK-4572: Overflow to disk threshold too high

Reduce default threshold to 2048 and make configurable with system property

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java?rev=1753335&r1=1753334&r2=1753335&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/JournalEntry.java Tue Jul 19 06:19:02 2016
@@ -70,9 +70,10 @@ public final class JournalEntry extends
     private static final int READ_CHUNK_SIZE = 100;
 
     /**
-     * switch to disk after 1MB
+     * switch to disk after 2048 paths
      */
-    private static final int STRING_SORT_OVERFLOW_TO_DISK_THRESHOLD = 1024 * 1024;
+    private static final int STRING_SORT_OVERFLOW_TO_DISK_THRESHOLD
+            = Integer.getInteger("oak.overflowToDiskThreshold", StringSort.BATCH_SIZE);
 
     private final DocumentStore store;