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

@@ -8,7 +8,7 @@
// since our primary subscription will first hit parties now, we *definitely* need an index there // since our primary subscription will first hit parties now, we *definitely* need an index there
db.parties.ensureIndex( { 'members': 1, 'background': 1} ); db.parties.ensureIndex( { 'members': 1}, {background: true} );
db.parties.find().forEach(function(party){ db.parties.find().forEach(function(party){

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} )