From cc68a1414c47caf3c9bd7b77f5e4bf2c726c5df2 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 7 Sep 2021 17:52:30 +0800 Subject: [PATCH] [td-255] update the threshold of concurrent launch query to be 4. --- src/client/src/tscSubquery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 8a52bc776d..275042a238 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -2459,11 +2459,11 @@ static void doSendQueryReqs(SSchedMsg* pSchedMsg) { tfree(p); } -static UNUSED_FUNC void doConcurrentlySendSubQueries(SSqlObj* pSql) { +static void doConcurrentlySendSubQueries(SSqlObj* pSql) { SSubqueryState *pState = &pSql->subState; // concurrently sent the query requests. - const int32_t MAX_REQUEST_PER_TASK = 8; + const int32_t MAX_REQUEST_PER_TASK = 4; int32_t numOfTasks = (pState->numOfSub + MAX_REQUEST_PER_TASK - 1)/MAX_REQUEST_PER_TASK; assert(numOfTasks >= 1);