Shopify / ghostferry

The swiss army knife of live data migrations
https://shopify.github.io/ghostferry
MIT License
748 stars 70 forks source link

Add data iteration batch size map #243

Closed Lincoln23 closed 3 years ago

Lincoln23 commented 3 years ago

After analysis, we found that the ideal batch size varies for each table this PR adds the ability to have DataIterationBatchSizePerTableOverride to be configurable per table.

We can pass in map[schema_name]: map[table_name]: batchSize to the config to set the batchSize for each table. If no batchSize is specified, default 200 is used.