Let's work on large scale!
Given a large JSON
file, fetch records and save in DB
node createLargeFile.js
to create a JSON file of 190 MB containing 1 million recordsmongod
to start MongoDB Servernode scriot.js
to start import from file to DBCurrently the BATCH_INSERT_VALUE
in config.json
is set to 1000 (Best value for batch insert according to completion time of script.js
)