0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-14 17:03:43 +01:00
gitea/models
Lunny Xiao 98637fe76e
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106)
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>
2025-01-07 10:50:09 +08:00
..
actions Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
activities Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
admin Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00:00
asymkey Move delete deploy keys into service layer (#32201) 2024-12-18 04:10:38 +00:00
auth Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
avatars
db Fix unittest and repo create bug (#33061) 2024-12-31 18:45:05 +08:00
dbfs
fixtures Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
git Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issues Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) 2025-01-07 10:50:09 +08:00
migrations Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
organization Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
packages Refactor maven package registry (#33049) 2024-12-31 05:30:52 +00:00
perm Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
project Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
pull
renderhelper Refactor render system (orgmode) (#32671) 2024-11-29 16:08:29 +08:00
repo fix empty repo updated time (#33120) 2025-01-07 01:54:06 +08:00
secret
shared/types
system
unit Add DEFAULT_MIRROR_REPO_UNITS and DEFAULT_TEMPLATE_REPO_UNITS options (#32416) 2024-11-11 00:11:00 +00:00
unittest Make Gitea always use its internal config, ignore /etc/gitconfig (#33076) 2025-01-02 20:26:48 +00:00
user Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
webhook Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
main_test.go
repo_test.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00
repo.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00