diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 79ec709588f0dccd74a2d782a448bd3eca22db5f..ff625b0cca78f6cb68e8f4519d1c624d2a35b930 100644 --- a/packaging/cfg/taos.cfg +++ b/packaging/cfg/taos.cfg @@ -312,10 +312,10 @@ keepColumnName 1 # keepTimeOffset 0 # enable thread local write batching. -# writeBatchThreadLocal 1 +# writeBatchThreadLocal 0 -# taosc write batch size, maximum 4096, 0 means disabled write batching. +# taosc write batch size, maximum 4096, 0 means disabled write batching. suggesting value: 96 ~ 512. # writeBatchSize 96 -# taosc write batch timeout in milliseconds, maximum 2048 +# taosc write batch timeout in milliseconds, maximum 2048. suggesting value: 5 ~ 100. # writeBatchTimeout 10 \ No newline at end of file diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 641622096f653ddb92d91bf342bf3f1f2aff59c9..e2aaf9a301b70e37d1e685cbfe61afba69a99c2f 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -128,9 +128,9 @@ int32_t tsProjectExecInterval = 10000; // every 10sec, the projection will be int64_t tsMaxRetentWindow = 24 * 3600L; // maximum time window tolerance // The tsc async write batching feature (using ABWD). -bool tsWriteBatchThreadLocal = true; // if thread local enable, each thread will allocate a dispatcher. -int32_t tsWriteBatchSize = 96; // suggest: 64 - 512, 0 means disable batching. -int32_t tsWriteBatchTimeout = 10; // suggest: 5 - 200 (unit: milliseconds) +bool tsWriteBatchThreadLocal = false; // if thread local enable, each thread will allocate a dispatcher. +int32_t tsWriteBatchSize = 96; // suggest: 96 - 512, 0 means disable batching. +int32_t tsWriteBatchTimeout = 10; // suggest: 5 - 100 (unit: milliseconds) // the maximum allowed query buffer size during query processing for each data node. // -1 no limit (default)