Loading a JSON file vs Querying MongoDB

Kyle Pastor
RE:Stacked
Published in
3 min readJun 13, 2023

--

A Comparison

Photo by Ferenc Almasi on Unsplash

Question

It is a performance question — I created a web app (in Node.js) that loads a JSON file that has around 10 000 records and then displays that data to the user. I’m wondering if it would be faster to use (for example) MongoDB(or any other noSQL database, CouchDB?) instead? And how much faster would it be?

--

--

Kyle Pastor
RE:Stacked

Analytics | Full Stack | Data Science | MS Physics + MS Quant Finance → http://kapastor.github.io/