opti:use suid+uid->tags index to optimize time cost

This commit is contained in:
wangmm0220 2022-08-12 11:39:19 +08:00
parent e102f81f92
commit 95ef68bbc1
2 changed files with 2 additions and 1 deletions

View File

@ -449,7 +449,7 @@ SColumnInfoData* getColInfoResult(void* metaHandle, uint64_t suid, SArray* uidLi
qDebug("calculate tag block rows:%d, cost:%ld us", rows, st2-st1);
end:
taosArrayDestroy(tags);
taosArrayDestroyP(tags, taosMemoryFree);
taosHashCleanup(ctx.colHash);
taosArrayDestroy(ctx.cInfoList);
blockDataDestroy(pResBlock);

View File

@ -386,6 +386,7 @@ void* taosArrayDestroy(SArray* pArray) {
}
void taosArrayDestroyP(SArray* pArray, FDelete fp) {
if(!pArray) return;
for (int32_t i = 0; i < pArray->size; i++) {
fp(*(void**)TARRAY_GET_ELEM(pArray, i));
}