forgejo/models/issues
Gusted 19013ba5ea
[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)
(cherry picked from commit 0e1e09e77d)
2024-01-15 16:48:44 +00: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-15 14:48:04 +00:00
comment_code.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
comment_list.go
comment_test.go [GITEA] Avoid WHERE IN for comment migration query 2024-01-15 16:48:44 +00: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-15 14:48:04 +00: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-15 14:48:04 +00: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-15 14:48:04 +00: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-15 14:48:04 +00: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 Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00: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
stopwatch.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
stopwatch_test.go
tracked_time.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
tracked_time_test.go