forgejo/routers/web
Lunny Xiao c9854bee98 Do some performance optimize for issues list and view issue/pull (gitea#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>
Conflicts:
models/issues/comment_code.go: function was renamed in Forgejo
models/migrations/migrations.go: migration already ported
2024-04-08 14:47:31 +02:00
..
admin Enable user pronoun editing from the admin ui 2024-04-03 15:18:02 -05:00
auth
devtest
events
explore Unify search boxes (#29530) 2024-03-20 12:31:05 +00:00
feed
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org [REFACTOR] use Icon from interface in webhook list 2024-03-30 16:00:06 +01:00
repo Do some performance optimize for issues list and view issue/pull (gitea#29515) 2024-04-08 14:47:31 +02:00
shared Fix missing code in the user profile (#29865) 2024-03-26 19:04:25 +01:00
user [BUG] Fix unblock action 2024-04-06 20:57:51 +02:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Add default board to new projects, remove uncategorized pseudo-board (#29874) 2024-03-30 07:17:31 +01:00
webfinger.go fix: cleanup webfinger URI parsing 2024-04-04 16:52:25 +00:00