提交 95ef68bb 编写于 作者: wmmhello's avatar wmmhello

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

上级 e102f81f
...@@ -449,7 +449,7 @@ SColumnInfoData* getColInfoResult(void* metaHandle, uint64_t suid, SArray* uidLi ...@@ -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); qDebug("calculate tag block rows:%d, cost:%ld us", rows, st2-st1);
end: end:
taosArrayDestroy(tags); taosArrayDestroyP(tags, taosMemoryFree);
taosHashCleanup(ctx.colHash); taosHashCleanup(ctx.colHash);
taosArrayDestroy(ctx.cInfoList); taosArrayDestroy(ctx.cInfoList);
blockDataDestroy(pResBlock); blockDataDestroy(pResBlock);
......
...@@ -386,6 +386,7 @@ void* taosArrayDestroy(SArray* pArray) { ...@@ -386,6 +386,7 @@ void* taosArrayDestroy(SArray* pArray) {
} }
void taosArrayDestroyP(SArray* pArray, FDelete fp) { void taosArrayDestroyP(SArray* pArray, FDelete fp) {
if(!pArray) return;
for (int32_t i = 0; i < pArray->size; i++) { for (int32_t i = 0; i < pArray->size; i++) {
fp(*(void**)TARRAY_GET_ELEM(pArray, i)); fp(*(void**)TARRAY_GET_ELEM(pArray, i));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册