gitlab-org--gitlab-foss/lib/gitlab/background_migration
Sean McGivern 1507ff8ab7 Make MR diff background migration less likely to time out
This version does not use transactions, but individual statements. As we have
unique constraints on the target tables for the inserts, we can just ignore
uniqueness violations there (as long as we always insert the same batch size, in
the same order).

This means the spec now must use truncation, not a transaction, as the
uniqueness violation means that the whole transaction for that spec would be
invalid, which isn't what we'd want. In real-world use, this isn't run in a
transaction anyway.

This commit also wraps unhandled exceptions, for easier finding in Sentry, and
logs with a consistent format, for easier searching.
2017-09-29 11:56:08 +01:00
..
.gitkeep
delete_conflicting_redirect_routes_range.rb Simplify query 2017-09-14 14:17:23 -07:00
deserialize_merge_request_diffs_and_commits.rb Make MR diff background migration less likely to time out 2017-09-29 11:56:08 +01:00
migrate_build_stage_id_reference.rb Simplify stage_id migration as we now use relations 2017-07-07 15:52:45 +02:00
migrate_events_to_push_event_payloads.rb Migrate events into a new format 2017-08-10 17:45:44 +02:00
migrate_stage_status.rb Freeze mutable constants in stages migration code 2017-07-11 12:05:04 +02:00
migrate_system_uploads_to_new_folder.rb Allow groups with the name system 2017-07-18 16:23:38 +02:00
move_personal_snippet_files.rb Move the personal snippet uploads from system to -/system 2017-08-11 18:17:45 +02:00