Skip to content

Wait when updating batches of rows in migrations

Yorick Peterse requested to merge wait-between-updating-batches into master

What does this MR do?

This changes update_column_in_batches so that:

  1. The max batch size is 10 000 instead of 1 000
  2. It waits 2 seconds between every batch

This might be enough to reduce pressure on a system when updating large tables.

Merge request reports