gitea/routers
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
..
api Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
common Fix incorrect cookie path for AppSubURL (#29534) 2024-03-03 00:14:12 +00:00
install Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
private Sync branches first (#29714) 2024-03-11 06:42:50 +00:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
init.go Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00