gitea/routers/web
Giteabot b4f0eed969
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) (#33128)
Backport #33106 by @lunny

This PR fixes a performance problem when reviewing a pull request in a
big instance which have many records in the `review` table.
Traditionally, we should add more indexes in that table. But since
dismissed reviews of 1 pull request will not be too many as expected in
a common repository. Filtering reviews in the memory should be more
quick .

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-08 10:43:46 +08:00
..
admin Refactor some frontend problems (#32646) 2024-11-26 15:36:55 +00:00
auth Support for email addresses containing uppercase characters when activating user account (#32998) (#33001) 2024-12-27 11:41:41 +00:00
devtest Make RepoActionView.vue support `##[group]` (#32770) 2024-12-10 01:57:20 +00:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
feed Move GetFeeds to service layer (#32526) 2024-11-29 17:53:49 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
org Use project's redirect url instead of composing url (#33058) (#33064) 2024-12-31 20:06:35 +08:00
repo Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) (#33128) 2025-01-08 10:43:46 +08:00
shared Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964) 2024-12-24 00:37:11 +08:00
user Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
base.go Fix `missing signature key` error when pulling Docker images with `SERVE_DIRECT` enabled (#32365) 2024-10-31 15:28:25 +00:00
githttp.go Fix LFS route mock, realm, middleware names (#32488) 2024-11-13 16:58:09 +08:00
goget.go Refactor RepoRefByType (#32413) 2024-11-05 06:35:54 +00:00
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964) 2024-12-24 00:37:11 +08:00
webfinger.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00