gitlab-org--gitlab-foss/changelogs/unreleased/reduce-query-count-for-mergerequestscontroller-show.yml
Sean McGivern 39c9928cfb Fix N+1 in MergeRequest#merge_request_diff_for
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.
2018-03-21 17:24:46 +00:00

5 lines
106 B
YAML

---
title: Reduce number of queries when viewing a merge request
merge_request:
author:
type: performance