From 9ae885353747172ce49f895b69e316ca53e8b499 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 13 Oct 2021 14:22:05 +0800 Subject: [PATCH] update the least aggr rows --- src/tsdb/src/tsdbCommit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsdb/src/tsdbCommit.c b/src/tsdb/src/tsdbCommit.c index 539713d4fa..4323402a4b 100644 --- a/src/tsdb/src/tsdbCommit.c +++ b/src/tsdb/src/tsdbCommit.c @@ -1188,7 +1188,7 @@ int tsdbWriteBlockImpl(STsdbRepo *pRepo, STable *pTable, SDFile *pDFile, SDFile return -1; } - uint32_t aggrStatus = ((nAggrCols > 0) && (rowsToWrite > 10)) ? 1 : 0; // TODO: How to make the decision? + uint32_t aggrStatus = ((nAggrCols > 0) && (rowsToWrite > 8)) ? 1 : 0; // TODO: How to make the decision? if (aggrStatus > 0) { pAggrBlkData->numOfCols = nColsNotAllNull; -- GitLab