SUMMARY
Though I lack extensive programming experience, I am currently developing a hybrid mobile app with Cordova. The app will contain a substantial amount of static data which needs to be referenced periodically for basic operations. As the volume of objects is expected to reach close to 10,000, I am concerned that this may overload the device's memory.
My initial idea is to store the static data in local storage instead of declaring individual objects within the code itself. By utilizing a JSON file, I can access and reference the required information during each iteration of my loop without putting excessive strain on the device's RAM.
DETAILS
• Development tools include typescript and Cordova.
• Anticipating handling tens of thousands of static objects.
• Objects will adhere to specific interfaces as templates.
• Few objects will be accessed for information every minute.
• Basic operations will be carried out based on this information.
• Object IDs may need to be stored permanently for future use.
• Operations dictate which objects are referenced next.
INQUIRIES
I seek clarification on how objects are stored and whether the projected number of objects could overwhelm a mobile device's RAM capacity. Is it viable to store all static data in a JSON format and then selectively reference objects from the file when needed?