forgejo/models/issues
Gusted 0e1e09e77d
[GITEA] Avoid WHERE IN for comment migration query
- Rewrite `UpdateCommentsMigrationsByType` to not use `WHERE IN` as
that's a performance diaster for MariaDB, it now use batching to query
the the relevant comment IDs via JOINs (which is not possible in a
UPDATE query for SQLite) and then update them in a seperate query.
- Add unit test.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1856

(cherry picked from commit 8098ca9d2e)

Conflicts:
	models/issues/comment.go
	https://codeberg.org/forgejo/forgejo/pulls/2075
(cherry picked from commit ca65deba1c)
2024-01-08 17:05:48 +01:00
..
assignees.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
assignees_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
comment.go [FEAT] allow setting the update date on issues and comments 2024-01-08 14:01:18 +01:00
comment_code.go
comment_list.go
comment_test.go [GITEA] Avoid WHERE IN for comment migration query 2024-01-08 17:05:48 +01:00
content_history.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
content_history_test.go Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
dependency.go
dependency_test.go
issue.go [FEAT] allow setting the update date on issues and comments 2024-01-08 14:01:18 +01:00
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 Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
issue_stats.go
issue_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
issue_update.go [FEAT] allow setting the update date on issues and comments 2024-01-08 14:01:18 +01:00
issue_user.go Add combined index for issue_user.uid and issue_id (#28080) 2023-12-14 09:26:59 +00:00
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go [FEAT] allow setting the update date on issues and comments 2024-01-08 14:01:18 +01:00
issue_xref_test.go
label.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
label_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
main_test.go
milestone.go [FEAT] allow setting the update date on issues and comments 2024-01-08 14:01:18 +01:00
milestone_list.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
milestone_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
pull.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go Refactor some legacy code and remove unused code (#28622) 2023-12-28 09:38:59 +00:00
review_list.go
review_test.go Fix 500 when deleting a dismissed review (#27903) 2023-11-05 13:25:40 +00:00
stopwatch.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
stopwatch_test.go
tracked_time.go
tracked_time_test.go