From f3136c338b76684fecb20cbdbe01bce4c3711799 Mon Sep 17 00:00:00 2001 From: zhihaop Date: Sat, 24 Sep 2022 12:24:15 +0800 Subject: [PATCH] feat: enable thread local dispatcher by default --- packaging/cfg/taos.cfg | 2 +- src/common/src/tglobal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 94a7dfc84a..295b30c568 100644 --- a/packaging/cfg/taos.cfg +++ b/packaging/cfg/taos.cfg @@ -315,7 +315,7 @@ keepColumnName 1 # asyncBatchEnable 1 # enable thread local batch dispatcher -# asyncBatchThreadLocal 0 +# asyncBatchThreadLocal 1 # taosc async insertion batch size, maximum 65535 # asyncBatchSize 256 diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index f09bb3abb2..1eceb4ae0e 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -133,7 +133,7 @@ int64_t tsMaxRetentWindow = 24 * 3600L; // maximum time window tolerance // The statements will be sent to vnodes no more than `tsAsyncBatchTimeout` milliseconds. But the actual time vnodes // received the statements depends on the network quality. bool tsAsyncBatchEnable = true; -bool tsAsyncBatchThreadLocal = false; // if thread local enable, each thread will allocate a dispatcher. +bool tsAsyncBatchThreadLocal = true; // if thread local enable, each thread will allocate a dispatcher. int32_t tsAsyncBatchSize = 96; int32_t tsAsyncBatchTimeout = 10; -- GitLab