Fix Gitaly n+1 in NetworkController#show
What does this MR do?
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/37602
Closes gitaly#1056 (closed)
Currently NetworkController#show
generates the second highest number of Gitaly calls out of all controller/actions in the entire Gitlab.com application.
This is astonishing, considering how little this controller is used.
This endpoint will frequently call Gitaly 7000+ times per request.
This fixes the problem.
Edited by Andrew Newdigate