mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 03:52:36 +02:00
Comments list performance optimization (#5305)
This commit is contained in:
1 parent
2262811e40
commit
dd1acd7ce4
4 files changed
+555
-42
No files matched your search
@@ -272,6 +272,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
|
||||
if err = issue.loadComments(e); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err = CommentList(issue.Comments).loadAttributes(e); err != nil {
|
||||
return err
|
||||
}
|
||||
if issue.isTimetrackerEnabled(e) {
|
||||
if err = issue.loadTotalTimes(e); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user