jbolitho
4/3/2018 - 6:16 PM

Mongo DB Bulk Insert

Mongo DB Bulk Insert

var bulk = db.test.initializeUnorderedBulkOp();
for(loop=0; loop<10; loop++){
  bulk.insert({name: "Name" + loop});
}
bulk.execute()