mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 16:48:49 +01:00
Add MongoDB indexes
These indexes will optimize the queries that are used in the board and card views. Fixes #524.
This commit is contained in:
parent
81a35be856
commit
9792193e60
3 changed files with 16 additions and 4 deletions
|
|
@ -91,6 +91,10 @@ Lists.mutations({
|
|||
Lists.hookOptions.after.update = { fetchPrevious: false };
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Lists._collection._ensureIndex({ boardId: 1 });
|
||||
});
|
||||
|
||||
Lists.after.insert((userId, doc) => {
|
||||
Activities.insert({
|
||||
userId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue