mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
remove unnecessary index
the _key:1 score:-1 index already handles reverse sorting on score
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user