forgejo/models/issues
Gusted 5c0894a588
[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)
(cherry picked from commit 19013ba5ea)
(cherry picked from commit 23c887f97e)
(cherry picked from commit b3321d1a84)
2024-02-05 16:09:42 +01:00
..
assignees.go
assignees_test.go
comment.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01: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-02-05 16:09:42 +01:00
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +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
issue_stats.go
issue_test.go
issue_update.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01:00
issue_user.go
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-02-05 14:44:33 +01:00
issue_xref_test.go
label.go
label_test.go
main_test.go
milestone.go [FEAT] allow setting the update date on issues and comments 2024-02-05 14:44:33 +01:00
milestone_list.go
milestone_test.go
pull.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
review_list.go
review_test.go
stopwatch.go
stopwatch_test.go
tracked_time.go Add ability to see open and closed issues at the same time (#28757) 2024-01-15 15:07:22 +00:00
tracked_time_test.go Add ability to see open and closed issues at the same time (#28757) 2024-01-15 15:07:22 +00:00