summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-04-02 16:14:20 +0100
committerSean McGivern <sean@gitlab.com>2018-04-05 13:59:05 +0100
commite7b1d201dd56611eff7e796e9a390a7b21df51d1 (patch)
tree77918cabd27f31980c5f2d49d4fcd562682688b3 /spec/tasks
parent8dca091ff7f04bb92a7835ebeff783b7f0ef76cd (diff)
downloadgitlab-ce-e7b1d201dd56611eff7e796e9a390a7b21df51d1.tar.gz
Fix N+1 in MergeRequestParser
read_project can be prevented by a very expensive condition, which we want to avoid, while still not writing manual SQL queries. read_project_for_iids is used by read_issue_iid and read_merge_request_iid to satisfy both of those constraints, and allow the declarative policy runner to use its normal caching strategy.
Diffstat (limited to 'spec/tasks')
0 files changed, 0 insertions, 0 deletions