diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 94a7dfc84acfd8ff38ebaf326c35b427aad64057..295b30c56847d540f794a41d611596348cded913 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 f09bb3abb2778bd5a7f4c7b0ef7ab8a63382902c..1eceb4ae0ed69d2fff479ecbc40f81a37b75a855 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;