gitea/models/issues
Giteabot b4f0eed969
Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index () ()
Backport  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
..
assignees.go
assignees_test.go
comment.go Fix issue comment number () () 2024-12-31 07:54:40 +08:00
comment_code.go
comment_list.go
comment_test.go Fix issue comment number () () 2024-12-31 07:54:40 +08:00
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go
issue_index.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go
issue_search.go
issue_stats.go
issue_test.go
issue_update.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go
issue_xref_test.go
label.go
label_test.go
main_test.go
milestone.go
milestone_list.go
milestone_test.go
pull.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index () () 2025-01-08 10:43:46 +08:00
pull_list.go
pull_list_test.go
pull_test.go
reaction.go
review.go Fix issue comment number () () 2024-12-31 07:54:40 +08:00
review_list.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index () () 2025-01-08 10:43:46 +08:00
review_test.go Filter reviews of one pull request in memory instead of database to reduce slow response because of lacking database index () () 2025-01-08 10:43:46 +08:00
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go