habitica-self-host/migrations/20130615_add_extra_indexes.js

4 lines
253 B
JavaScript
Raw Normal View History

2013-06-15 23:14:49 +00:00
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} )