gitea: Slow to open a repo if there’s many branches in it

  • Gitea version (or commit ref): 1.13.0
  • Git version: git 2.29.2.windows
  • Operating system: Windows 10 1809
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Didn’t really try
    • Yes (provide example URL)
    • No
  • Log gist:

Description

The title may be a bit misleading.

I was building a local mirror of PyTorch manually using git push —mirror. And I found that opening the repo is exceptionally slow (~11 seconds). I also built a clone of gitea itself and the time to open the repo is reasonable (~2 seconds).

I think the reason is that PyTorch has over 4000 branches in it.

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 28 (26 by maintainers)

Commits related to this issue

Most upvoted comments

To accelerate the branches list, maybe we have to sync all branches into database like we did with tags.

I agree, this would also help for PR creating page where branches need to be selected and other places where we currently show all branches to make that dropdown to show only top branches and make it async searchable