You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
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>
2 months ago
..
actions Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token (#32946) (#32964) 2 months ago
activities Fix bug on activities (#33008) (#33016) 2 months ago
admin Fix javascript error when an anonymous user visiting migration page (#32144) 5 months ago
asymkey bump to go 1.23 (#31855) 6 months ago
auth Enable tenv and testifylint rules (#32852) 2 months ago
avatars Replace 10 more gt- classes with tw- (#29945) 11 months ago
db Enable tenv and testifylint rules (#32852) 2 months ago
dbfs Enable `unparam` linter (#31277) 9 months ago
fixtures Refactor testfixtures (#33028) 2 months ago
git Enable tenv and testifylint rules (#32852) 2 months ago
issues Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index (#33106) (#33128) 2 months ago
migrations Enable tenv and testifylint rules (#32852) 2 months ago
organization Enable tenv and testifylint rules (#32852) 2 months ago
packages Refactor maven package registry (#33049) (#33057) 2 months ago
perm Enable tenv and testifylint rules (#32852) 2 months ago
project Use project's redirect url instead of composing url (#33058) (#33064) 2 months ago
pull Add support for sha256 repositories (#23894) 1 year ago
renderhelper Refactor render system (orgmode) (#32671) 3 months ago
repo fix empty repo updated time (#33120) (#33124) 2 months ago
secret Clarify Actions resources ownership (#31724) 7 months ago
shared/types Refactor locale&string&template related code (#29165) 1 year ago
system Refactor deletion (#28610) 1 year ago
unit Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (#32416) 3 months ago
unittest Refactor testfixtures (#33028) 2 months ago
user Support for email addresses containing uppercase characters when activating user account (#32998) (#33001) 2 months ago
webhook Enable tenv and testifylint rules (#32852) 2 months ago
error.go Add merge style `fast-forward-only` (#28954) 1 year ago
main_test.go make writing main test easier (#27270) 1 year ago
repo.go Fix issue comment number (#30556) (#33055) 2 months ago
repo_test.go Fix issue comment number (#30556) (#33055) 2 months ago
repo_transfer.go chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621) 10 months ago