mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
create index on score field
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
}
|
||||
|
||||
function createIndices() {
|
||||
db.collection('objects').ensureIndex({_key :1}, {background:true}, function(err) {
|
||||
db.collection('objects').ensureIndex({_key :1, score: -1}, {background:true}, function(err) {
|
||||
if(err) {
|
||||
winston.error('Error creating index ' + err.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user