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_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
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror_test.go
pushmirror.go
redirect_test.go
redirect.go
release_test.go
release.go
repo_indexer.go
repo_list_test.go
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
update.go
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