-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update migration tasks with batch limit
When running the tasks on large DBs it makes sense to limit the number of records updated on each transaction in order to avoid locking the records (or the whole table) for too long. The default batch size is 100'000 and it can be overridden by passing a different value when invoking the tasks. For example, this will set the batch size to 1000 rows: rake solidus:migrations:migrate_default_billing_addresses_to_address_book:up[1000]
- Loading branch information
1 parent
ac3a2f8
commit 45c364b
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters