Skip to content

[Summary] Loading user dashboard too slow #31698

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

Closed
yp05327 opened this issue Jul 25, 2024 · 6 comments · Fixed by #33686
Closed

[Summary] Loading user dashboard too slow #31698

yp05327 opened this issue Jul 25, 2024 · 6 comments · Fixed by #33686
Labels
performance/speed performance issues with slow downs type/summary This issue aggregates a bunch of other issues

Comments

@yp05327
Copy link
Contributor

yp05327 commented Jul 25, 2024

Feature Description

We have received may reports about loading user dashboard too slow.
Please discuss/report related/similar issues (only the user dashboard, other pages are fine) in this summary, and avoid creating more and more.
Although these reports maybe caused by different reasons, I think it is better to have a summary about this issue.
@lunny
Can you pin this issue on the top?

Opening:

Closed:

Screenshots

No response

@yp05327 yp05327 added type/bug performance/speed performance issues with slow downs type/summary This issue aggregates a bunch of other issues and removed type/bug labels Jul 25, 2024
@lunny lunny pinned this issue Jul 28, 2024
@lunny
Copy link
Member

lunny commented Sep 24, 2024

#32110 should resolve the problem.

@yp05327
Copy link
Contributor Author

yp05327 commented Sep 24, 2024

Hope it works.

@lunny
Copy link
Member

lunny commented Sep 24, 2024

#32127 should resolve the problem for most Gitea instances.

@yp05327
Copy link
Contributor Author

yp05327 commented Oct 10, 2024

Still got report after upgrade to the latest version.

@lunny
Copy link
Member

lunny commented Dec 5, 2024

I think we can close this one and leave #29769 open.

@lunny lunny unpinned this issue Dec 18, 2024
@uxbug
Copy link

uxbug commented Feb 13, 2025

update 1.23.3 home page also too slow

  • docker install
  • database: sqlite
  • git version 2.47.2
  • Gitea version: 1.23.3 built with GNU Make 4.4.1, go1.23.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify
  • log
2025/02/13 07:29:03 ...s/graceful/server.go:50:NewServer() [I] Starting new Web server: tcp:0.0.0.0:3000 on PID: 18

2025/02/13 07:29:15 ...eb/routing/logger.go:68:func1() [W] router: slow      GET / for 1x.1x.x.x3:0, elapsed 3424.7ms @ web/home.go:32(web.Home)

2025/02/13 07:30:49 models/db/list.go:210:]() [W] [Slow SQL Query] SELECT `id`, `repo_id`, `schedule_id`, `next`, `prev`, `spec`, `created`, `updated` FROM `action_schedule_spec` WHERE next<=? ORDER BY `id` DESC LIMIT 50 [1739431803] - 46.067580691s

2025/02/13 07:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET / for 1x.1x.x.x3:0, 200 OK in 97507.5ms @ web/home.go:32(web.Home)

2025/02/13 07:30:49 ...eb/routing/logger.go:102:func1() [I] router: completed GET /repo/search?count_only=1&uid=1&team_id=undefined&q=&page=1&mode= for 1x.1x.x.x3:0, 200 OK in 46.7ms @ repo/repo.go:573(repo.SearchRepo)

2025/02/13 07:30:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /repo/search?sort=updated&order=desc&uid=1&team_id=undefined&q=&page=1&limit=15&mode=&archived=false for 1x.1x.x.x3:0, 200 OK in 693.8ms @ repo/repo.go:573(repo.SearchRepo)
  • doctor check result
9a8546a05926:~$ gitea doctor check --run check-db-consistency

[1] Check consistency of database
OK

All done (checks: 1).

@lunny lunny closed this as completed in 76b7f95 Feb 24, 2025
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Feb 24, 2025
Fix go-gitea#33582
Fix go-gitea#31698

When a user login, the dashboard should load all feed belongs to him
with no any conditions. The complicated conditions should be applied
only for another user view this user's profile.
lunny added a commit that referenced this issue Feb 25, 2025
Backport #33686 by @lunny

Fix #33582
Fix #31698

When a user login, the dashboard should load all feed belongs to him
with no any conditions. The complicated conditions should be applied
only for another user view this user's profile.

Co-authored-by: Lunny Xiao <[email protected]>
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 type/summary This issue aggregates a bunch of other issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants