1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-10 17:54:27 +00:00
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
..
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2024-02-25 13:32:13 +00:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00
2023-10-05 09:08:19 +08:00
2023-08-13 21:17:21 +02:00
2023-08-13 21:17:21 +02:00