From 0cecc15b53955f297f565bf72591145c1e224b78 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 23 Dec 2021 10:56:28 +0800 Subject: [PATCH] adjust the message overhead to 1/3 so that wal limit is not exceeded --- src/client/src/tscParseLineProtocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 404c5f8b60..0997067016 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -1061,7 +1061,7 @@ static int32_t insertChildTablePointsBatch(TAOS* taos, char* cTableName, char* s tscDebug("SML:0x%"PRIx64" insert child table table %s of super table %s : %s", info->id, cTableName, sTableName, sql); size_t rows = taosArrayGetSize(rowsBind); - size_t maxBatchSize = TSDB_MAX_WAL_SIZE/rowSize * 4 / 5; + size_t maxBatchSize = TSDB_MAX_WAL_SIZE/rowSize * 2 / 3; size_t batchSize = MIN(maxBatchSize, rows); tscDebug("SML:0x%"PRIx64" insert rows into child table %s. num of rows: %zu, batch size: %zu", info->id, cTableName, rows, batchSize); -- GitLab