PHOENIX-1447 Increase guidepost width default to take into account FAST_DIFF 
compression


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/1a045137
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/1a045137
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/1a045137

Branch: refs/heads/master
Commit: 1a04513752bc0f26971c49b950d3c2c694281814
Parents: fbbb43b
Author: James Taylor <jtay...@salesforce.com>
Authored: Wed Nov 12 17:16:54 2014 -0800
Committer: James Taylor <jtay...@salesforce.com>
Committed: Wed Nov 12 21:51:30 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/phoenix/query/QueryServicesOptions.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/1a045137/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java 
b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java
index 6c03780..460b199 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java
@@ -150,7 +150,10 @@ public class QueryServicesOptions {
 
     public static final int DEFAULT_STATS_UPDATE_FREQ_MS = 15 * 60000; // 15min
     public static final int DEFAULT_STATS_GUIDEPOST_PER_REGION = 0; // Uses 
guidepost width by default
-    public static final long DEFAULT_STATS_GUIDEPOST_WIDTH_BYTES = 100 * 1024 
*1024; // 100MB
+    // Since we're not taking into account the compression done by FAST_DIFF 
in our
+    // counting of the bytes, default guidepost width to 100MB * 3 (where 3 is 
the
+    // compression we're getting)
+    public static final long DEFAULT_STATS_GUIDEPOST_WIDTH_BYTES = 3* 100 * 
1024 *1024;
     public static final boolean DEFAULT_STATS_USE_CURRENT_TIME = true;
 
     public static final boolean DEFAULT_USE_REVERSE_SCAN = true;

Reply via email to