Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance problems with requests to /api/v3/repos/:owner/:repository/branches #3434

Closed
ziggystar opened this issue Nov 27, 2023 · 0 comments
Milestone

Comments

@ziggystar
Copy link
Contributor

Issue

Impacted version: 4.39.0

Deployment mode: tomcat
Requests to /api/v3/repos/:owner/:repository/branches are very slow for repositories that have stale branches.
Those are branches with many commits behind master (thousands).

The problem is also visible in the loading of the branch view of a repo.

I think I tracked it down to the problem that loading the branches also walks through commits to find the number if diverging commits.

This takes 10s of seconds for our repo. This also results in Jenkins repo scan for new branches and tags failing with a timeout.

A solution probably needs to either make the rev walking faster or at least don't do it for the API request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants