Improve performance of GroupsController#show

What does this MR do?

This MR includes various performance improvements for GroupsController#show, such as:

  1. Reducing the number of queries used to see if a user is a member of a group
  2. Adding an index to speed up counting the number of group merge requests

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/43048

Edited by Yorick Peterse

Merge request reports

Loading