Files
habitica/migrations/20130615_add_extra_indexes.js
2013-06-15 19:14:49 -04:00

4 lines
253 B
JavaScript

db.users.ensureIndex( { _id: 1, apiToken: 1 }, {background: true} )
db.groups.ensureIndex( { members: 1 }, {background: true} )
db.groups.ensureIndex( { type: 1 }, {background: true} )
db.groups.ensureIndex( { type: 1, privacy: 1 }, {background: true} )