Skip to content

Commit

Permalink
Add residentIds field index
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Dec 6, 2017
1 parent 57e02f3 commit 16021a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions both/collections/activities.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Activities = new Mongo.Collection('activities');
Meteor.startup(function () {
// Make sure activityDate field is indexed for performance
Activities._ensureIndex({'activityDate': 1});

// Make sure residentIds field is indexed for performance
Activities._ensureIndex({'residentIds': 1});
});

var ActivitiesSchema = new SimpleSchema({
Expand Down

0 comments on commit 16021a0

Please sign in to comment.