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/e9a8f83c Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/e9a8f83c Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/e9a8f83c Branch: refs/heads/4.2 Commit: e9a8f83c045f4c9d75a2dc50b2eb9af973d537ab Parents: 3b524a7 Author: James Taylor <[email protected]> Authored: Wed Nov 12 17:16:54 2014 -0800 Committer: James Taylor <[email protected]> Committed: Wed Nov 12 17:16:54 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/e9a8f83c/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;
