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/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>
11 months ago
..
base Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
fixtures Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
v1_6 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_7 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_8 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_9 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_10 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_11 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_12 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_13 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_14 Use `crypto/sha256` (#29386) 11 months ago
v1_15 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_16 Fix bug hidden on CI and make ci failed if tests failure (#29254) 11 months ago
v1_17 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_18 Refactor system setting (#27000) 1 year ago
v1_19 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_20 Rename `Sync2` -> `Sync` (#26479) 1 year ago
v1_21 handle repository.size column being NULL in migration v263 (#28336) 1 year ago
v1_22 Do some performance optimize for issues list and view issue/pull (#29515) 11 months ago
migrations.go Do some performance optimize for issues list and view issue/pull (#29515) 11 months ago