opti:use suid+uid->tags index to optimize time cost
This commit is contained in:
parent
e102f81f92
commit
95ef68bbc1
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue