I can not understand how to work with data. I have a big JSON containing information on products.

Is it possible to unload it somehow by parts, say, 20 products for one page? Or do you already need a database?

I can not understand the advantages and disadvantages of this or that method.

I ask you to explain clearly and simply

  • @ nörbörnĂ«n, but can you read more about this somewhere? - Dmitry Filippov
  • 2
    Depends on how big is JSON. If it continues to grow, then one day it will be such a moment that it will start loading unnecessarily long (tens of seconds or more), and subsequently such that it will simply cease to fit into the operational memory and will stop working at all. This does not necessarily mean that it is necessary to use the database, but at least it may hint at the possible need for processing the storage structure. If json fits in the region of several megabytes, then perhaps the database will not give any significant benefits - andreymal
  • one
    the fs.createReadStream documentation is written about the possibility of specifying the starting and ending position when streaming a file - nörbörnën
  • As far as I understand, @nörbörnĂ«n, in general, this is not very applicable, since the json format does not provide supporting information that allows you to select these initial and final positions - andreymal
  • @andreymal agree. however, for completeness of information, this method should have been proposed - nörbörnĂ«n

0