added index on _key

v1.18.x
Baris Soner Usakli 11 years ago
parent 72a3ab1d6c
commit 7c4347736c

@ -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);

@ -350,7 +350,7 @@ var DebugRoute = function(app) {
isMemberOfSets
];
require('async').series(objectTasks, function(err, results) {
require('async').series(setTasks, function(err, results) {
if(err) {
console.log(err);
res.send(err.message);

Loading…
Cancel
Save