fix up some db indexes

This commit is contained in:
Tyler Renelle
2013-06-15 19:14:49 -04:00
parent d4d7c32fa8
commit 302721456d
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
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} )