Skip to content

Only preload member records for the relevant projects/groups/user in projects API

Douwe Maan requested to merge dm-api-projects-members-preload into master

Found while debugging https://gitlab.com/gitlab-org/gitlab-ce/issues/46063, but probably not the cause of that issue.

Before this change, we used to load every ProjectMember and GroupMember for the current_user into memory, along with their Project and Groups.

Merge request reports