• Sean McGivern's avatar
    Fix N+1 in `MergeRequest#merge_request_diff_for` · 39c9928c
    Sean McGivern authored
    Previously, this would issue a query for each unique `diff_refs_or_sha`
    passed. This was because we didn't want to load other MR diffs into memory, as
    they had some very large columns.
    
    Now they are actually very small, and it's more efficient to just load them all
    at once and do the finding in Ruby.
    39c9928c