Excessive Gitaly queries loading /dashboard/projects
I noticed the via performance bar when visiting /dashboard/projects for the first time (e.g. https://dev.gitlab.org/dashboard/projects), there were 97 Gitaly calls:
- 50 FindCommit
- 18 FindDefaultBranchName
- 16 GetTreeEntries
- 13 RepositoryExists
While I don't think this is strictly a Gitaly n+1 issue, it does strike me odd since this dashboard page doesn't actually show all that much Git-related data. It does include the latest CI pipeline status, which may be slow, but I don't quite understand why for 20 projects on dev there are this many calls.
Edited by Stan Hu