gitea/models/repo
Lunny Xiao d8bd6f34f0
Do some performance optimize for issues list and view issue/pull (#29515)
This PR do some performance optimzations.

- [x] Add `index` for the column `comment_id` of `Attachment` table to
accelerate query from the database.
- [x] Remove unnecessary database queries when viewing issues. Before
some conditions which id = 0 will be sent to the database
- [x] Remove duplicated load posters 
- [x] Batch loading attachements, isread of comments on viewing issue

---------

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-03-12 07:23:44 +00:00
..
archiver.go
attachment.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
attachment_test.go
avatar.go
collaboration.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
collaboration_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
fork.go
fork_test.go
git.go Add merge style `fast-forward-only` (#28954) 2024-02-12 23:37:23 +01:00
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror.go
pushmirror_test.go
redirect.go
redirect_test.go
release.go Refactor some Str2html code (#29397) 2024-03-01 07:11:51 +00:00
release_test.go
repo.go Some performance optimization on dashboard and issues page (#29010) 2024-03-12 04:57:19 +00:00
repo_indexer.go
repo_list.go Some performance optimization on dashboard and issues page (#29010) 2024-03-12 04:57:19 +00:00
repo_list_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
repo_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
repo_unit.go Fix projects mode bugs (#29593) 2024-03-04 20:49:21 +00:00
repo_unit_test.go
search.go
star.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
star_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
topic.go Fix non-alphabetic sorting of repo topics (#28938) 2024-01-26 14:15:57 +00:00
topic_test.go
update.go Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00
upload.go
user_repo.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
user_repo_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
watch.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
watch_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
wiki.go
wiki_test.go