/** * Created by davidsaliba on 13/03/2017. */ var MongoClient = require('mongodb').MongoClient , format = require('util').format; var url = 'mongodb://localhost:27017/test'; var async = require ('async'); var entry = { data : "skdlfjsdf", array : [ {id:"arr_obj1"} , {id:"arr_obj2"} ] }; var entries = []; var total_entries = 1000000 for (var j = 0 ; j…
Saving a million documents in Mongo using Nodejs and mongodb module
Posted on