0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-07 06:39:16 +01:00
gitea/routers/api/v1
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
..
activitypub Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
admin Add a warning for disallowed email domains (#29658) 2024-03-11 06:07:36 +00:00
misc Fix wrong test usage of AppSubURL (#29459) 2024-02-29 03:39:24 +00:00
notify Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
org Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
repo Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
swagger Add admin API route for managing user's badges (#23106) 2024-03-01 03:23:28 -05:00
user Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
utils Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00