Projects::BranchesController#index: Gitaly timeout error
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
For large repositories like GitLab, branches page takes a while to load: https://gitlab.com/gitlab-org/gitlab/-/branches.
In some cases Gitaly response triggers a fast_timeout
(10 seconds) and cancels the response:
https://log.gprd.gitlab.net/app/r/s/UAory
FindAllBranches
method can be slow
How to reproduce
https://gitlab.com/gitlab-org/gitlab/-/branches?state=all&sort=updated_desc&search=17-11-stable
Proposal
Investigate options to improve the performance. Potential ideas:
- Add limits on
FindAllBranches
- Explore other endpoints to get a list of branches
- Check if
FindAllBranches
is necessary
Related issues
Edited by 🤖 GitLab Bot 🤖