Commit ea919063 authored by Curtis Adam's avatar Curtis Adam

Update the Leitner index

parent dddf8af1
......@@ -328,7 +328,7 @@ function removeDeletedUsers() {
}
function setupDatabaseIndex() {
Leitner._ensureIndex({user_id: 1, cardset_id: 1, original_cardset_id: 1});
Leitner._ensureIndex({user_id: 1, cardset_id: 1, original_cardset_id: 1, active: 1, nextDate: 1});
Wozniak._ensureIndex({user_id: 1, cardset_id: 1});
Workload._ensureIndex({cardset_id: 1, user_id: 1});
Cards._ensureIndex({cardset_id: 1, subject: 1});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment