• 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.
    484ae2ee
20171124095655_add_index_on_merge_request_diffs_merge_request_id_and_id.rb 438 Bytes