Comments list performance optimization (#5305)

This commit is contained in:
Lunny Xiao authored and techknowlogick committed 2019-04-18 01:00:03 -04:00
1 parent 2262811e40
commit dd1acd7ce4
4 files changed
+555 -42

No files matched your search

+4
View File
@@ -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