diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2025-01-06 18:50:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-07 10:50:09 +0800 |
commit | 98637fe76e70d8b963827354b2eed2e8f151ebd6 (patch) | |
tree | 7ade9d7c63a805407c7a58b3cfefcd43da8cf2b8 /modules/setting/lfs_test.go | |
parent | 485d184a5c7c4de4082ef2c1743f8a3d14491468 (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106)HEADmain
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: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/setting/lfs_test.go')
0 files changed, 0 insertions, 0 deletions