From 600c3006add85cfd6b4d37805c2d362a8f903ac1 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Thu, 12 Aug 2021 09:49:31 +0800 Subject: [PATCH] [TD-5623]: Set default column compression threshold to 512KB --- src/query/inc/qExecutor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/query/inc/qExecutor.h b/src/query/inc/qExecutor.h index f6e07ae6b1..021369e23d 100644 --- a/src/query/inc/qExecutor.h +++ b/src/query/inc/qExecutor.h @@ -43,7 +43,8 @@ typedef int32_t (*__block_search_fn_t)(char* data, int32_t num, int64_t key, int #define GET_NUM_OF_RESULTS(_r) (((_r)->outputBuf) == NULL? 0:((_r)->outputBuf)->info.rows) -#define QUERY_COMP_THRESHOLD 16 +//TODO: may need to fine tune this threshold +#define QUERY_COMP_THRESHOLD 1024 * 512 #define NEEDTO_COMPRESS_QUERY(size) ((size) > QUERY_COMP_THRESHOLD ? 1 : 0) enum {