remove unnecessary index

the _key:1 score:-1 index already handles reverse sorting on score
This commit is contained in:
barisusakli
2014-09-29 00:20:50 -04:00
parent 81bc481efc
commit e8dc9fed3c

View File

@@ -108,12 +108,6 @@
}
});
db.collection('objects').ensureIndex({_key :1, score: 1}, {background:true}, function(err) {
if(err) {
winston.error('Error creating index ' + err.message);
}
});
db.collection('objects').ensureIndex({_key :1, value: -1}, {background:true}, function(err) {
if(err) {
winston.error('Error creating index ' + err.message);