mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Improve wekan performance (checklist collection scan)
This commit is contained in:
parent
cd6317cedb
commit
6ca832c02b
2 changed files with 5 additions and 3 deletions
|
@ -414,9 +414,7 @@ if (Meteor.isServer) {
|
|||
_id: 1,
|
||||
'members.userId': 1,
|
||||
}, { unique: true });
|
||||
Boards._collection._ensureIndex({
|
||||
'members.userId': 1,
|
||||
}, { unique: true });
|
||||
Boards._collection._ensureIndex({'members.userId': 1});
|
||||
});
|
||||
|
||||
// Genesis: the first activity of the newly created board
|
||||
|
|
|
@ -133,6 +133,10 @@ Checklists.mutations({
|
|||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Checklists._collection._ensureIndex({ cardId: 1, createdAt: 1 });
|
||||
});
|
||||
|
||||
Checklists.after.insert((userId, doc) => {
|
||||
Activities.insert({
|
||||
userId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue