From 5ae469217ab9c4d40b0e706f4352c263b97e576b Mon Sep 17 00:00:00 2001 From: Max Fellows Date: Fri, 7 Jun 2024 13:16:58 -0700 Subject: [PATCH] Increased batch size to help with ClickHouse errors. --- .../moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp b/Source/moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp index 8792f892..cf3df74b 100644 --- a/Source/moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp +++ b/Source/moja.modules.cbm/src/cbmaggregatorhybridlibpqxxwriter.cpp @@ -145,7 +145,7 @@ namespace cbm { std::vector batch; int batchRecords = 0; for (auto& record : records) { - if (batchRecords == 10000) { + if (batchRecords == 100000) { auto insertStmt = (boost::format(baseStmt) % table % columns % boost::join(batch, "),(")).str(); batch.clear(); batchRecords = 0;