Skip to content

Commit 741e26c

Browse files
committed
feat(mysql-driver): Increase external pre-aggregations upload batch size
1 parent 8a692c1 commit 741e26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-mysql-driver/driver/MySqlDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class MySqlDriver extends BaseDriver {
140140
}
141141
await this.createTable(table, columns);
142142
try {
143-
const batchSize = 100; // TODO make dynamic?
143+
const batchSize = 1000; // TODO make dynamic?
144144
for (let j = 0; j < Math.ceil(tableData.rows.length / batchSize); j++) {
145145
const currentBatchSize = Math.min(tableData.rows.length - j * batchSize, batchSize);
146146
const indexArray = Array.from({ length: currentBatchSize }, (v, i) => i);

0 commit comments

Comments
 (0)