• Sean McGivern's avatar
    Improve indexes on merge_request_diffs · 484ae2ee
    Sean McGivern authored
    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.
20171124100152_remove_index_on_merge_request_diffs_merge_request_diff_id.rb 419 Bytes