Skip to content

Reduce overhead and optimize ProjectTeam#max_member_access performance

Stan Hu requested to merge stanhu/gitlab-ce:make-max-member-access-faster into master

The previous implementation would load the entire team member list and their respective attributes. Now we only search for the user's specific access level.

In gitlab-com/operations#42 (closed), this reduces the overall overhead of rendering the issue from 28% to 20%.

First step of optimizing #19273 (closed)

Merge request reports

Loading