summaryrefslogtreecommitdiff
path: root/doc/gitlab-basics/add-merge-request.md
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-01-19 22:10:20 -0800
committerStan Hu <stanhu@gmail.com>2019-01-19 22:17:29 -0800
commitf9e217872d26c161bc64dc7bb9456b1b22bc3259 (patch)
tree9f1dacc02ca147eced7309c5bb3ada5fe2f65974 /doc/gitlab-basics/add-merge-request.md
parentd4d4ebadfb373518013382560b1f505eb6217f13 (diff)
downloadgitlab-ce-f9e217872d26c161bc64dc7bb9456b1b22bc3259.tar.gz
Eliminate N+1 queries in /api/groups/:id
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15475/diffs, a significant amount of work went into eliminating N+1 queries in the /api/groups/:id/projects endpoint. We can reuse the `Entities::Project.prepare_relation` call on the projects. In a group with 2,573 projects on GitLab.com, this change significantly improves performance: * 18019 SQL queries down to 21 * Time spent in DB: 70 s down to 384 ms Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/49845
Diffstat (limited to 'doc/gitlab-basics/add-merge-request.md')
0 files changed, 0 insertions, 0 deletions