Improve wekan performance #837

This commit is contained in:
maulal 2017-02-18 02:18:39 +01:00 committed by Lauri Ojansivu
parent cd70076af2
commit cd6317cedb
4 changed files with 9 additions and 1 deletions

View file

@ -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) => {