]> cat aescling's git repositories - mastodon.git/commit
Improve account index migration (#7684)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 31 May 2018 15:09:09 +0000 (17:09 +0200)
committerGitHub <noreply@github.com>
Thu, 31 May 2018 15:09:09 +0000 (17:09 +0200)
commit19b4c666f7f760986be4215ea874f951c617a0df
treeaf189dd6f1479f359d7d2a92947f4a6e60a91286
parent1e938b966e7dd6ec329567be7c285779b6d11599
Improve account index migration (#7684)

* Improve account index migration

- Display more progress in stdout
- Catch PG::UniqueViolation when re-attributing favourites
- Skip callbacks and validations when re-attributing other relationships

* Use in_batches to reduce table lock-up during account merge

* Use #say_with_time to benchmark each deduplication
db/migrate/20180528141303_fix_accounts_unique_index.rb