Skip to content

Gitaly n + 1 in /api/:version/projects/:id/issues/:issue_iid, Projects::IssuesController#discussions and Projects::IssuesController#related_branches

Each time an issue is referenced from a commit, an event is created on the issue.

When this issue is accessed via the web or api, a Gitaly call is made for each commit that references the request.

Since there is no limitations on the number of commits that can reference an issue, this is also a limits problem.

Example issue which creates 1600 Gitaly calls to ListCommitsByOid:

image