Skip to main content
Brainiac
November 19, 2021
Question

OT - json file size

  • November 19, 2021
  • 1 reply
  • 1342 views

What do developers think the maximum file size of a json file should be before it starts to slow the interaction process, find, filter, forEach, etc javascript workflow down, or doesnt it matter? 

 

 

 

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    November 19, 2021

    I think parsing and string size limits depend on the platform & server environment.

     

    JSON files have a maximum limit of 18,446,744,073,709,551,616 characters.  That's Eighteen quintillion, four hundred and forty-six quadrillion, seven hundred and forty four trillion, seventy three billion, seven hundred and nine million, five hundred and fifty one thousand, six hundred and sixteen.

     

    Nancy O'Shea— Product User & Community Expert
    osgood_Author
    Brainiac
    November 20, 2021

    Thanks for that, I'd still be interested to know in terms of max kbs/mbs what the json file size should be. I could be wrong but I would have thought the more lines of text in it the more time it would take to process a request. Just trying to figure out if there is any suggested max-size before things start slowing down.

    B i r n o u
    Community Expert
    November 20, 2021

    I never thought in terms of size limitation (and it is an excellent question that you raised there), but for information, that made years that I function thus, that is to say call with a data base (INNER JOIN obliges... massive DATAS back) and global return of the information in the form of JSON, then in order to avoid the requests inter pages, I store directly JSON in the localstorage (PWA obliges) and that functions marvelously...

     

    judicious choice that you made there, 😉