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 Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
attachment_test.go
attachment.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
avatar.go
collaboration_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
collaboration.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
fork_test.go
fork.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_test.go
pushmirror.go Don't run push mirrors for archived repos (#27140) 2024-01-24 02:32:57 +00:00
redirect_test.go
redirect.go
release_test.go
release.go Refactor some Str2html code (#29397) 2024-03-01 07:11:51 +00:00
repo_indexer.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
repo_list_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
repo_list.go Some performance optimization on dashboard and issues page (#29010) 2024-03-12 04:57:19 +00:00
repo_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
repo_unit_test.go
repo_unit.go Fix projects mode bugs (#29593) 2024-03-04 20:49:21 +00:00
repo.go Some performance optimization on dashboard and issues page (#29010) 2024-03-12 04:57:19 +00:00
search.go
star_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
star.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
topic_test.go
topic.go Fix non-alphabetic sorting of repo topics (#28938) 2024-01-26 14:15:57 +00:00
update.go Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00
upload.go
user_repo_test.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
user_repo.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
watch.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
wiki_test.go
wiki.go