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/a8541c24
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a8541c24
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a8541c24

Branch: refs/heads/3.0
Commit: a8541c24026521ec2bd072e22df36c9a04d04c91
Parents: e526cdd
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 22:47:47 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/a8541c24/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 c102883..f4386b0 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
@@ -135,7 +135,10 @@ public class QueryServicesOptions {
     public static final long DEFAULT_STATS_HISTOGRAM_DEPTH_BYTE = 1024 * 1024 
* 30;
     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