diff options
author | maulal <maulal@none.fr> | 2017-02-18 02:18:39 +0100 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-02-22 17:05:30 +0200 |
commit | cd6317cedbd9815284d4e533f00fbc75c8e06afc (patch) | |
tree | fc42b8c26097a8688d5430b79d84c739ffb48387 /models/cards.js | |
parent | cd70076af2b0d34c2fb4a0ef52c02c8f9da28a69 (diff) | |
download | wekan-cd6317cedbd9815284d4e533f00fbc75c8e06afc.tar.gz wekan-cd6317cedbd9815284d4e533f00fbc75c8e06afc.tar.bz2 wekan-cd6317cedbd9815284d4e533f00fbc75c8e06afc.zip |
Improve wekan performance #837
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js index ab735ad0..9c149e51 100644 --- a/models/cards.js +++ b/models/cards.js @@ -267,7 +267,7 @@ if (Meteor.isServer) { // Cards are often fetched within a board, so we create an index to make these // queries more efficient. Meteor.startup(() => { - Cards._collection._ensureIndex({ boardId: 1 }); + Cards._collection._ensureIndex({ boardId: 1, createdAt: -1 }); }); Cards.after.insert((userId, doc) => { |