mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
added index on _key
This commit is contained in:
@@ -26,8 +26,12 @@
|
||||
});
|
||||
|
||||
|
||||
db.createCollection('objects', function(err, _collection) {
|
||||
|
||||
db.createCollection('objects', function(err, collection) {
|
||||
collection.ensureIndex({_key :1}, {background:true}, function(err, name){
|
||||
if(err) {
|
||||
winston.error("Error creating index " + err.message);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
callback(err);
|
||||
|
||||
Reference in New Issue
Block a user