Skip to content

Commit

Permalink
Increased batch size to help with ClickHouse errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfellows committed Jun 7, 2024
1 parent 1be4a7b commit 5ae4692
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace cbm {
std::vector<std::string> 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;
Expand Down

0 comments on commit 5ae4692

Please sign in to comment.