0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-09 22:00:25 +01:00
gitea/routers
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
..
api Fix package error handling and npm meta and empty repo guide (#33112) 2025-01-06 14:17:28 +08:00
common Fix bleve fuzziness search (#33078) (#33087) 2025-01-02 21:45:14 +00:00
install Save initial signup information for users to aid in spam prevention (#31852) 2024-09-09 17:05:16 -04:00
private Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web 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
init.go Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964) 2024-12-24 00:37:11 +08:00