gitea icon indicating copy to clipboard operation
gitea copied to clipboard

[Summary] Loading user dashboard too slow

Open yp05327 opened this issue 1 year ago • 5 comments

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:

  • #29769
  • #32858

Closed:

  • #16665
  • #21045
  • #21611
  • #23101
  • #31582
  • #31646
  • #32112
  • #32224

Screenshots

No response

yp05327 avatar Jul 25 '24 00:07 yp05327

#32110 should resolve the problem.

lunny avatar Sep 24 '24 06:09 lunny

Hope it works.

yp05327 avatar Sep 24 '24 06:09 yp05327

#32127 should resolve the problem for most Gitea instances.

lunny avatar Sep 24 '24 22:09 lunny

Still got report after upgrade to the latest version.

yp05327 avatar Oct 10 '24 00:10 yp05327

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

lunny avatar Dec 05 '24 23:12 lunny

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).

uxbug avatar Feb 13 '25 07:02 uxbug

Hi guys, any update about this issue?

v1.23.7 still have this issue:

gitea  | 2025/04/28 22:44:51 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/login for 192.168.208.1:57392, 303 See Other in 161.7ms @ auth/auth.go:180(auth.SignIn)
gitea  | 2025/04/28 22:44:54 ...eb/routing/logger.go:68:func1() [W] router: slow      GET / for 192.168.208.1:57406, elapsed 3356.5ms @ web/home.go:32(web.Home)





gitea  | 2025/04/28 22:45:50 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 [1745851529] - 21.397119388s

AlliotTech avatar Apr 28 '25 14:04 AlliotTech

#33981 should fix this. Please wait v1.24

lunny avatar Apr 28 '25 16:04 lunny

#33981 should fix this. Please wait v1.24

Thank you. I am currently fixing it by adding the following configuration to the app.ini:

[cron.delete_old_actions]
ENABLED = true
RUN_AT_START = true
NOTICE_ON_SUCCESS = true

AlliotTech avatar Apr 28 '25 16:04 AlliotTech

#33981 should fix this. Please wait v1.24

Thank you. I am currently fixing it by adding the following configuration to the app.ini:

[cron.delete_old_actions]
ENABLED = true
RUN_AT_START = true
NOTICE_ON_SUCCESS = true

That should be a backend task which should not be considered as slow.

lunny avatar Apr 28 '25 16:04 lunny