Commit Graph
100 Commits
Author SHA1 Message Date
c3b7120042 Add index to issue_user.issue_id (#27154) (#27158)
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>
2023-09-21 11:42:34 +08:00
GiteaBot 558eea69bd [skip ci] Updated licenses and gitignores 2023-09-18 00:23:39 +00:00
GiteaBot ea83c0647c [skip ci] Updated translations via Crowdin 2023-09-17 00:24:27 +00:00
GiteaBot 684ab403aa [skip ci] Updated translations via Crowdin 2023-09-16 00:21:59 +00:00
GiteaBot f8a1094406 [skip ci] Updated translations via Crowdin 2023-09-15 00:22:32 +00:00
GiteaBot d0318c4ae0 [skip ci] Updated translations via Crowdin 2023-09-14 00:22:27 +00:00
GiteaBot 7d56459c6c [skip ci] Updated translations via Crowdin 2023-09-13 00:22:36 +00:00
GiteaBot f599814001 [skip ci] Updated translations via Crowdin 2023-09-12 00:21:32 +00:00
GiteaBot 148c9c4b05 [skip ci] Updated translations via Crowdin 2023-09-11 00:22:57 +00:00
GiteaBot a20e0affba [skip ci] Updated translations via Crowdin 2023-09-10 00:23:48 +00:00
GiteaBot 049b9f3718 [skip ci] Updated translations via Crowdin 2023-09-09 00:21:42 +00:00
GiteaBot 6cbbd51ad4 [skip ci] Updated translations via Crowdin 2023-09-08 00:21:56 +00:00
GiteaBot 9860dba566 [skip ci] Updated translations via Crowdin 2023-09-07 00:22:15 +00:00
GiteaBot a38cf868c5 [skip ci] Updated licenses and gitignores 2023-09-04 00:23:31 +00:00
GiteaBot 3ff81d38d8 [skip ci] Updated translations via Crowdin 2023-09-01 00:24:05 +00:00
GiteaBot 10aab8a385 [skip ci] Updated translations via Crowdin 2023-08-31 00:22:07 +00:00
GiteaBot aeeeac8edf [skip ci] Updated translations via Crowdin 2023-08-29 00:22:17 +00:00
GiteaBot 2401e6e121 [skip ci] Updated licenses and gitignores 2023-08-28 00:22:48 +00:00
GiteaBot 37b3ba22a1 [skip ci] Updated translations via Crowdin 2023-08-27 00:27:26 +00:00
GiteaBot 00cf36d6c7 [skip ci] Updated translations via Crowdin 2023-08-19 00:20:23 +00:00
GiteaBot 445dbda276 [skip ci] Updated translations via Crowdin 2023-08-18 00:21:36 +00:00
GiteaBot 16aee56e6a [skip ci] Updated translations via Crowdin 2023-08-17 00:21:25 +00:00
GiteaBot e17e43f1db [skip ci] Updated translations via Crowdin 2023-08-12 00:20:47 +00:00
GiteaBot 906e253d5e [skip ci] Updated translations via Crowdin 2023-08-09 00:26:05 +00:00
GiteaBot 049e400327 [skip ci] Updated licenses and gitignores 2023-08-07 00:27:21 +00:00
GiteaBot 907bedaad0 [skip ci] Updated translations via Crowdin 2023-08-04 00:26:21 +00:00
GiteaBot 7dc2e50113 [skip ci] Updated licenses and gitignores 2023-07-31 00:32:16 +00:00
GiteaBot 5db640abcd [skip ci] Updated translations via Crowdin 2023-07-25 00:27:42 +00:00
GiteaBot 4e4a71f3a0 [skip ci] Updated translations via Crowdin 2023-07-24 00:27:48 +00:00
GiteaBot 3acaaa29dd [skip ci] Updated translations via Crowdin 2023-07-21 00:26:46 +00:00
GiteaBot cf467119ff [skip ci] Updated translations via Crowdin 2023-07-20 00:27:21 +00:00
GiteaBot c7455e9f23 [skip ci] Updated translations via Crowdin 2023-07-19 00:46:27 +00:00
GiteaBot 24b49bcf66 [skip ci] Updated translations via Crowdin 2023-07-18 00:43:46 +00:00
GiteaBot faf28b2823 [skip ci] Updated translations via Crowdin 2023-07-15 00:29:55 +00:00
GiteaBot d1f30f2185 [skip ci] Updated translations via Crowdin 2023-07-14 00:31:01 +00:00
GiteaBot ef90fdbd1d [skip ci] Updated translations via Crowdin 2023-07-13 00:29:39 +00:00
GiteaBot d1e066f5d6 [skip ci] Updated translations via Crowdin 2023-07-12 00:32:23 +00:00
GiteaBot b1eb1676aa [skip ci] Updated translations via Crowdin 2023-07-07 00:30:02 +00:00
GiteaBot ab6095707f [skip ci] Updated translations via Crowdin 2023-07-06 00:31:13 +00:00
GiteaBot 3dbcbf7a1b [skip ci] Updated translations via Crowdin 2023-07-05 00:31:02 +00:00
GiteaBot deb007ca2b [skip ci] Updated translations via Crowdin 2023-07-03 20:02:34 +00:00
GiteaBot eab011db58 [skip ci] Updated licenses and gitignores 2023-07-03 00:30:17 +00:00
GiteaBot 1704c64a15 [skip ci] Updated translations via Crowdin 2023-07-01 00:32:07 +00:00
GiteaBot b08647f0b9 [skip ci] Updated translations via Crowdin 2023-06-29 00:29:20 +00:00
GiteaBot 72c60f94c1 [skip ci] Updated translations via Crowdin 2023-06-27 00:29:26 +00:00
GiteaBot 2a6e2afab9 [skip ci] Updated translations via Crowdin 2023-06-26 00:31:01 +00:00
GiteaBot 326df0f6ed [skip ci] Updated translations via Crowdin 2023-06-24 00:30:41 +00:00
GiteaBot a59bfeb175 [skip ci] Updated translations via Crowdin 2023-06-19 00:27:14 +00:00
GiteaBot 39a15623f6 [skip ci] Updated translations via Crowdin 2023-06-15 00:26:55 +00:00
GiteaBot dc0a7168f1 [skip ci] Updated translations via Crowdin 2023-06-14 00:26:25 +00:00
GiteaBot 6da19d76bf [skip ci] Updated translations via Crowdin 2023-06-13 00:27:02 +00:00
GiteaBot d67e411c26 [skip ci] Updated licenses and gitignores 2023-06-12 00:29:16 +00:00
GiteaBot c17423e0a1 [skip ci] Updated translations via Crowdin 2023-06-11 00:29:35 +00:00
GiteaBot eb2ba43fa1 [skip ci] Updated translations via Crowdin 2023-06-10 00:25:26 +00:00
GiteaBot 6d063a81f0 [skip ci] Updated translations via Crowdin 2023-06-09 00:28:43 +00:00
GiteaBot 447ee6620f [skip ci] Updated translations via Crowdin 2023-06-08 00:28:45 +00:00
GiteaBot d63d8108b4 [skip ci] Updated licenses and gitignores 2023-06-05 00:27:49 +00:00
GiteaBot 7a5873335a [skip ci] Updated translations via Crowdin 2023-06-02 00:26:50 +00:00
GiteaBot 8faf9465b3 [skip ci] Updated translations via Crowdin 2023-05-29 00:24:30 +00:00
GiteaBot 7de46b0749 [skip ci] Updated translations via Crowdin 2023-05-27 00:25:56 +00:00
GiteaBot 26fa94bc25 [skip ci] Updated translations via Crowdin 2023-05-26 00:24:37 +00:00
GiteaBot 84d93c82cd [skip ci] Updated licenses and gitignores 2023-05-22 00:25:26 +00:00
GiteaBot 6ba4f89723 [skip ci] Updated translations via Crowdin 2023-05-21 00:26:26 +00:00
GiteaBot 1698c15cba [skip ci] Updated translations via Crowdin 2023-05-20 00:22:02 +00:00
GiteaBot 98c4089b4b [skip ci] Updated translations via Crowdin 2023-05-16 00:23:56 +00:00
GiteaBot 707c7e60c9 [skip ci] Updated translations via Crowdin 2023-05-09 00:24:20 +00:00
GiteaBot 3319e9597e [skip ci] Updated licenses and gitignores 2023-05-08 00:23:39 +00:00
GiteaBot 8f17237b82 [skip ci] Updated translations via Crowdin 2023-05-05 00:22:45 +00:00
GiteaBot da65b7ad47 [skip ci] Updated translations via Crowdin 2023-05-02 00:23:19 +00:00
GiteaBot c205d559f9 [skip ci] Updated licenses and gitignores 2023-05-01 00:25:30 +00:00
GiteaBot 0f52beb6b7 [skip ci] Updated translations via Crowdin 2023-04-30 00:25:54 +00:00
GiteaBot ef9e0ce9c9 [skip ci] Updated translations via Crowdin 2023-04-29 00:23:39 +00:00
GiteaBot de265f3771 [skip ci] Updated translations via Crowdin 2023-04-27 01:07:47 +00:00
GiteaBotandsilverwind fa86a1b74a [skip ci] Updated translations via Crowdin 2023-04-26 00:07:58 +00:00
GiteaBotandtechknowlogick 1ef43f9bfe [skip ci] Updated translations via Crowdin 2023-04-25 00:07:53 +00:00
GiteaBotandsilverwind a0cfc1c953 [skip ci] Updated translations via Crowdin 2023-04-24 00:07:49 +00:00
GiteaBotandwxiaoguang 30ea09c277 [skip ci] Updated translations via Crowdin 2023-04-23 00:07:50 +00:00
GiteaBotandJakobDev fb32b4c534 [skip ci] Updated translations via Crowdin 2023-04-22 00:07:44 +00:00
GiteaBotandwxiaoguang 7b34cba0b8 [skip ci] Updated translations via Crowdin 2023-04-21 00:08:19 +00:00
GiteaBotandsillyguodong 594efb9b66 [skip ci] Updated translations via Crowdin 2023-04-20 00:07:41 +00:00
GiteaBotandoliverpool 5fcf328a8d [skip ci] Updated translations via Crowdin 2023-04-19 00:07:39 +00:00
GiteaBotandPanagiotis "Ivory" Vasilopoulos 6f86b98ded [skip ci] Updated translations via Crowdin 2023-04-18 00:07:34 +00:00
GiteaBotandwxiaoguang be7cd73439 [skip ci] Updated translations via Crowdin 2023-04-17 00:07:34 +00:00
GiteaBotandwxiaoguang 35e562d7bd [skip ci] Updated translations via Crowdin 2023-04-15 00:07:26 +00:00
GiteaBotandwxiaoguang 5f4cd715ab [skip ci] Updated translations via Crowdin 2023-04-14 00:07:25 +00:00
GiteaBotanddependabot[bot] 4299c3b7db [skip ci] Updated translations via Crowdin 2023-04-13 00:07:24 +00:00
GiteaBotandsillyguodong 1380b87311 [skip ci] Updated translations via Crowdin 2023-04-12 00:08:36 +00:00
GiteaBotandYarden Shoham b7b887ba00 [skip ci] Updated translations via Crowdin 2023-04-11 00:08:10 +00:00
GiteaBotandsilverwind ce8a6be55d [skip ci] Updated translations via Crowdin 2023-04-10 00:07:14 +00:00
GiteaBotandDaniel Gunzinger d1517946b4 [skip ci] Updated translations via Crowdin 2023-04-09 00:07:20 +00:00
GiteaBotandLunny Xiao 08f4a9cca2 [skip ci] Updated translations via Crowdin 2023-04-07 00:07:10 +00:00
GiteaBotandJonathan Tran bac9c06880 [skip ci] Updated translations via Crowdin 2023-04-06 00:07:08 +00:00
GiteaBotandJimmy Praet e485539a90 [skip ci] Updated translations via Crowdin 2023-04-05 00:07:08 +00:00
GiteaBotandwxiaoguang e351a26ca6 [skip ci] Updated translations via Crowdin 2023-04-04 00:07:23 +00:00
GiteaBotandsilverwind f020fc27e5 [skip ci] Updated translations via Crowdin 2023-04-03 00:06:56 +00:00
GiteaBotandsilverwind c9d7c83e30 [skip ci] Updated translations via Crowdin 2023-04-02 00:06:59 +00:00
GiteaBotandwxiaoguang 366377986c [skip ci] Updated translations via Crowdin 2023-04-01 00:06:55 +00:00
GiteaBotandwxiaoguang d5feb10aca [skip ci] Updated translations via Crowdin 2023-03-31 00:07:06 +00:00
GiteaBotandJason Song 7422503341 [skip ci] Updated translations via Crowdin 2023-03-30 00:06:54 +00:00
GiteaBotandJakobDev 9c0dc6c73a [skip ci] Updated translations via Crowdin 2023-03-29 00:40:29 +00:00