You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
11 months ago
..
activitypub Move context from modules to services (#29440) 12 months ago
admin Add a warning for disallowed email domains (#29658) 11 months ago
misc Fix wrong test usage of `AppSubURL` (#29459) 12 months ago
notify Move context from modules to services (#29440) 12 months ago
org Add user blocking (#29028) 11 months ago
packages remove util.OptionalBool and related functions (#29513) 12 months ago
repo Do some performance optimize for issues list and view issue/pull (#29515) 11 months ago
settings Move context from modules to services (#29440) 12 months ago
shared Add user blocking (#29028) 11 months ago
swagger Add admin API route for managing user's badges (#23106) 12 months ago
user Add user blocking (#29028) 11 months ago
utils Move context from modules to services (#29440) 12 months ago
api.go Add user blocking (#29028) 11 months ago