mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c3b7120042
Backport #27154 by @JakobDev This fixes a performance bottleneck. It was discovered by Codeberg. Every where query on that table (which has grown big over time) uses this column, but there is no index on it. See this part of the log which was posted on Matrix: ``` 2023/09/10 00:52:01 ...rs/web/repo/issue.go:1446:ViewIssue() [W] [Slow SQL Query] UPDATE `issue_user` SET is_read=? WHERE uid=? AND issue_id=? [true x y] - 51.395434887s 2023/09/10 00:52:01 ...rs/web/repo/issue.go:1447:ViewIssue() [E] ReadBy: Error 1205 (HY000): Lock wait timeout exceeded; try restarting transaction 2023/09/10 00:52:01 ...eb/routing/logger.go:102:func1() [I] router: completed GET /Codeberg/Community/issues/1201 for [::ffff:xxx]:0, 500 Internal Server Error in 52384.2ms @ repo/issue.go:1256(repo.ViewIssue) ``` Co-authored-by: JakobDev <jakobdev@gmx.de> |
1 year ago | |
---|---|---|
.. | ||
actions | 1 year ago | |
activities | 1 year ago | |
admin | 1 year ago | |
asymkey | 1 year ago | |
auth | 1 year ago | |
avatars | 1 year ago | |
db | 1 year ago | |
dbfs | 2 years ago | |
fixtures | 1 year ago | |
git | 1 year ago | |
issues | 1 year ago | |
migrations | 1 year ago | |
organization | 1 year ago | |
packages | 1 year ago | |
perm | 1 year ago | |
project | 1 year ago | |
pull | 2 years ago | |
repo | 1 year ago | |
secret | 1 year ago | |
shared/types | 2 years ago | |
system | 1 year ago | |
unit | 1 year ago | |
unittest | 2 years ago | |
user | 1 year ago | |
webhook | 2 years ago | |
error.go | 2 years ago | |
fixture_generation.go | 2 years ago | |
fixture_test.go | 2 years ago | |
main_test.go | 1 year ago | |
org.go | 2 years ago | |
org_team.go | 1 year ago | |
org_team_test.go | 1 year ago | |
org_test.go | 2 years ago | |
repo.go | 1 year ago | |
repo_test.go | 2 years ago | |
repo_transfer.go | 1 year ago | |
repo_transfer_test.go | 1 year ago |