From 1453db3a383ef7724b22ae36301a195afcfd9312 Mon Sep 17 00:00:00 2001 From: zhihaop Date: Sun, 25 Sep 2022 14:10:23 +0800 Subject: [PATCH] docs: add suggesting abwd configuration instructions --- packaging/cfg/taos.cfg | 6 +++--- src/common/src/tglobal.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/cfg/taos.cfg b/packaging/cfg/taos.cfg index 79ec709588..ff625b0cca 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 641622096f..e2aaf9a301 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) -- GitLab