1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-28 06:19:54 +02:00
gitea/models/migrations
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
..
base
fixtures
v1_6
v1_7
v1_8
v1_9
v1_10
v1_11
v1_12
v1_13
v1_14
v1_15
v1_16
v1_17
v1_18
v1_19
v1_20
v1_21
v1_22 Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00
migrations.go Do some performance optimize for issues list and view issue/pull (#29515) 2024-03-12 07:23:44 +00:00