diff --git a/models/schema/comment.js b/models/schema/comment.js index 7ae51ff41..bdc5bb2f8 100644 --- a/models/schema/comment.js +++ b/models/schema/comment.js @@ -163,6 +163,12 @@ Comment.index({ created_at: -1, }); +Comment.index({ + asset_id: 1, + parent_id: 1, + created_at: 1, +}); + Comment.index( { 'action_counts.flag': 1,