mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Improve wekan performance #837
This commit is contained in:
parent
cd70076af2
commit
cd6317cedb
4 changed files with 9 additions and 1 deletions
|
|
@ -52,6 +52,8 @@ if (Meteor.isServer) {
|
|||
Activities._collection._ensureIndex({ createdAt: -1 });
|
||||
Activities._collection._ensureIndex({ cardId: 1, createdAt: -1 });
|
||||
Activities._collection._ensureIndex({ boardId: 1, createdAt: -1 });
|
||||
Activities._collection._ensureIndex({ commentId: 1 }, { partialFilterExpression: { commentId: { $exists: true } } });
|
||||
Activities._collection._ensureIndex({ attachmentId: 1 }, { partialFilterExpression: { attachmentId: { $exists: true } } });
|
||||
});
|
||||
|
||||
Activities.after.insert((userId, doc) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue