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] Listing repositories is slow #26227

Open
KazzmanK opened this issue Jul 29, 2023 · 4 comments
Open

[performance] Listing repositories is slow #26227

KazzmanK opened this issue Jul 29, 2023 · 4 comments
Labels
performance/speed performance issues with slow downs topic/ui Change the appearance of the Gitea UI

Comments

@KazzmanK
Copy link
Contributor

KazzmanK commented Jul 29, 2023

Description

Request to
/repo/search?sort=updated&order=desc&uid=3&team_id=undefined&q=&page=1&limit=100&mode=&archived=false

on dashboard page (http://root_path), right pane, takes almost 5 seconds for 50 repositories exists

Database - sqlite

At the same time same repository list on http://root_path/organization appears instantly

Screenshots

none

Gitea Version

1.20.1

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Windows server 10.0

Browser Version

113

@KazzmanK KazzmanK added type/bug topic/ui Change the appearance of the Gitea UI labels Jul 29, 2023
@KazzmanK
Copy link
Contributor Author

Oh, looks like for every repo 3 git commands are executed. Looks like information from database is not sufficient to display repo list. But in Json returned by rest method seems does not contains any special data.

@KazzmanK
Copy link
Contributor Author

It is not clear, why here, in "https://root_path", after "SearchRepositoryByCondition" git commands are executed, but on "https://root_path/Organization" after the same "SearchRepositoryByCondition" - no git commands are executed and pageload is instant.

@lunny
Copy link
Member

lunny commented Jul 30, 2023

This issue comes from #24638 in v1.20 and should be resolved by #22743 in v1.21

@lunny lunny added performance/speed performance issues with slow downs and removed type/bug labels Jul 30, 2023
@Sebazzz
Copy link

Sebazzz commented Sep 11, 2023

Yes, I also ran into this after upgrading v1.19 to v1.20.4. Glad a fix is inbound!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance/speed performance issues with slow downs topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

No branches or pull requests

3 participants