forked from gitea/gitea
1
0
Fork 0
gitea/routers/web/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
..
actions remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
setting Use repo object format name instead of detecting from git repository (#29702) 2024-03-10 22:30:36 +01:00
activity.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
attachment.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
blame.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
branch.go Use repo object format name instead of detecting from git repository (#29702) 2024-03-10 22:30:36 +01:00
cherry_pick.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
code_frequency.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
compare.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
download.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
editor.go Make PR form use toast to show error message (#29545) 2024-03-02 15:05:07 +00:00
editor_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
find.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
githttp.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
githttp_test.go Fix http protocol auth (#27875) 2023-11-02 22:14:33 +08:00
helper.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
helper_test.go Make web context initialize correctly for different cases (#26726) 2023-08-25 19:07:42 +08:00
issue.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
issue_content_history.go Fix issue & comment history bugs (#29525) 2024-03-01 16:46:02 +00:00
issue_dependency.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_label.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_label_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_lock.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_pin.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_stopwatch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
issue_timetrack.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
issue_watch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
middlewares.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
migrate.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
milestone.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
packages.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
patch.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
projects.go Enable/disable owner and repo projects independently (#28805) 2024-03-04 02:56:52 +00:00
projects_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
pull.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
pull_review.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
pull_review_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
recent_commits.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
release.go Fix a bug returning 404 when display a single tag with no release (#29466) 2024-03-02 14:03:39 +00:00
release_test.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
render.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
repo.go Some performance optimization on dashboard and issues page (#29010) 2024-03-12 04:57:19 +00:00
search.go Patch in exact search for meilisearch (#29671) 2024-03-09 01:39:27 +00:00
topic.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
treelist.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
view.go Update various logos and unify their filenames (#29637) 2024-03-06 22:20:05 +00:00
view_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
wiki.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
wiki_test.go Make wiki default branch name changable (#29603) 2024-03-06 14:26:32 +08:00