mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
fix up some db indexes
This commit is contained in:
@@ -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){
|
||||||
|
|
||||||
|
|||||||
4
migrations/20130615_add_extra_indexes.js
Normal file
4
migrations/20130615_add_extra_indexes.js
Normal 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} )
|
||||||
Reference in New Issue
Block a user