diff options
| author | Sean McGivern <sean@gitlab.com> | 2017-07-03 15:48:59 +0100 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2017-08-03 13:20:26 +0100 |
| commit | f2d50af917b878a98e06b994ac32c0718f3d0b78 (patch) | |
| tree | 7f27c34fd9e738aec3c8a49e1715cd79e239ec4f /lib/api/api.rb | |
| parent | 1018ab0516fd94d1ffbc05a0ad8499947dd9630d (diff) | |
| download | gitlab-ce-f2d50af917b878a98e06b994ac32c0718f3d0b78.tar.gz | |
Migrate MR commits and diffs to new tablesmerge-request-commits-background-migration
Previously, we stored these as serialised fields - `st_{commits,diffs}` - on the
`merge_request_diffs` table. These now have their own tables -
`merge_request_diff_{commits,diffs}` - with a column for each attribute of the
serialised data.
Add a background migration to go through the existing MR diffs and migrate them
to the new format. Ignore any contents that cannot be displayed. Assuming that
we have 5 million rows to migrate, and each batch of 2,500 rows can be
completed in 5 minutes, this will take about 7 days to migrate everything.
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions
