From 9740d1353ca19b14b13c18b45a0a80981e77c529 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Thu, 29 Jun 2023 23:16:07 +0800 Subject: [PATCH] fix(tsdb): opt perf for read data in stt files. --- source/dnode/vnode/src/tsdb/tsdbMergeTree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c index 2048d0d7ba..45052628f9 100644 --- a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c +++ b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c @@ -200,7 +200,7 @@ static SBlockData *loadLastBlock(SLDataIter *pIter, const char *idStr) { goto _exit; } - code = tsdbSttFileReadBlockData(pIter->pReader, pIter->pSttBlk, pBlock); + code = tsdbSttFileReadBlockDataByColumn(pIter->pReader, pIter->pSttBlk, pBlock, pInfo->pSchema, &pInfo->colIds[1], pInfo->numOfCols - 1); if (code != TSDB_CODE_SUCCESS) { goto _exit; } -- GitLab