I am currently developing a project that utilizes the vis.js JavaScript framework to showcase a visual network of various categories. There are approximately 2000 categories available for selection, each with a substantial amount of associated data.
I am contemplating whether it would be more efficient to store the data for each category in separate JSON files on the server or within a comprehensive MySQL database. Alternatively, I am open to any other suggestions you may have. My primary concerns are optimizing storage space and streamlining data retrieval.
Given that the front-end JavaScript will ultimately need to parse the data as JSON, I am inclined towards the JSON file approach, even though it may seem somewhat unconventional. I am eager to learn about the best practices for handling this type of scenario, even if there are multiple approaches.
Thank you!