mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 09:38:49 +01:00
Improve wekan performance #837
This commit is contained in:
parent
cd70076af2
commit
cd6317cedb
4 changed files with 9 additions and 1 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue