-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
/explore/code rendering slowly when there are many repositories (> 2000) and a logged in user #12849
Comments
The differences are |
This spends < 0.5 secs
This spends 17 secs, there may be some N+1 queries in |
How about #12854 ? |
Still needs 15 secs |
We need more PRs here, but let's merge this one at first. |
Now the main issue is how to quickly find out all repos that the user has code read permission? |
@a1012112796 yes |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Up |
[x]
):Description
We have a lot of repositories (>2000), and the rendering of
/explore/code
is slow (see the attached screenshot, > 17 seconds) with a logged in user.We tried to remove some permission checking feature and the speed becomes good, however we are not sure which is the slowest part. The removed code is: master...jnlin:jnlin_test
The possible parts under suspicion are:
https://github.com/go-gitea/gitea/blob/master/routers/home.go#L330
https://github.com/go-gitea/gitea/blob/master/routers/home.go#L338-L343
Screenshots
The text was updated successfully, but these errors were encountered: