Bulk save documents within a transaction
Is there a way to load an array of objects using saveDoc()
once?
For Example:
var arrayList =[{a:12},{b:45},{c:56},.... {xxx:45}];
// Thousands if objects in the array.
db.saveDoc("table", arrayList , function(err, res) {
console.log('All rows were saved ! ');
});
each objects should be a row!