• Sean McGivern's avatar
    Speed up `all_commit_shas` for new merge requests · 4c0864fd
    Sean McGivern authored
    For merge requests created after 9.4, we have a `merge_request_diff_commits`
    table we can get all the SHAs from very quickly. We just need to exclude these
    when we load from the legacy format, by ignoring diffs with no serialised
    commits.
    
    Once these have been migrated in the background, every MR will see this
    improvement.
    4c0864fd
merge_request_spec.rb 50.9 KB