[ENH] Add index on CardId into Comments collection

This commit is contained in:
fmonthel 2016-11-17 21:25:49 -05:00
parent f71d2538fa
commit 584ab26aee

View file

@ -62,7 +62,7 @@ if (Meteor.isServer) {
Meteor.startup(() => {
CardComments._collection._ensureIndex({ cardId: 1, createdAt: -1 });
});
CardComments.after.insert((userId, doc) => {
Activities.insert({
userId,