Loading a JSON file vs querying MongoDB Loading a JSON file vs querying MongoDB mongodb mongodb

Loading a JSON file vs querying MongoDB


If you are looking for speed, JSON is quite specifically "not-fast". JSON involves sending the Keys along with the Values and it requires some heavy parsing on the receiving end. Reading the data from file can be slower than reading from the DB. I wouldn't like to say which is better, so you'll have to test it.