summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-02-07 22:23:15 -0800
committerSean McGivern <sean@gitlab.com>2018-02-08 10:28:50 +0000
commit9a323c7e1f806bca099158e29561e0958baa06a6 (patch)
tree585b09782d8c48283d6bd4819e29ace7f2aea98c /lib
parent828357fb828fc2d07b201f4f97f22ef964ab6a89 (diff)
downloadgitlab-ce-9a323c7e1f806bca099158e29561e0958baa06a6.tar.gz
Memoize MergeRequest#rebase_in_progress? to prevent N+1 queries in Gitalysh-fix-rebase-in-progress-nplus-one
MergeRequest#rebase_in_progress? and MergeRequest#rebase_path were called twice each time per request. This memoization helps reduce the overall number of queries. See https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/51616319 as a failing job. Closes gitlab-org/gitlab-ee#4857
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions