Improve indexes on merge_request_diffs
For getting the SHAs from an MR to find pipelines, we get the last 100 MR diffs for the MR, and find commits from those. This was un-indexed before, because the index was not a composite index on merge_request_diff_id, id. Changing that means that this scope can exclusively use indexes.
Showing with 35 additions and 1 deletion
db/post_migrate/20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb 0 → 100644
db/post_migrate/20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb 0 → 100644