Skip to content

Commit

Permalink
feat(mysql-driver): Increase external pre-aggregations upload batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Jan 1, 2020
1 parent 8a692c1 commit 741e26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-mysql-driver/driver/MySqlDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class MySqlDriver extends BaseDriver {
}
await this.createTable(table, columns);
try {
const batchSize = 100; // TODO make dynamic?
const batchSize = 1000; // TODO make dynamic?
for (let j = 0; j < Math.ceil(tableData.rows.length / batchSize); j++) {
const currentBatchSize = Math.min(tableData.rows.length - j * batchSize, batchSize);
const indexArray = Array.from({ length: currentBatchSize }, (v, i) => i);
Expand Down

0 comments on commit 741e26c

Please sign in to comment.