I have developed an application that organizes, compares, filters, and generates statistics from a dataset. The app is designed to function offline since some users may not always have internet access.
However, I am encountering a problem where the app becomes extremely slow after adding around 60 records. For example, when I try to list the objects stored in LocalStorage into a ng-model (Select list), the process of opening the Select box significantly delays.
I am unsure what could be causing this issue. It might be due to a specific function consuming excessive resources or perhaps LocalStorage is not optimized for such extensive use?
I am contemplating transitioning to PouchDB, do you think migrating everything to Pouch instead of LocalStorage would be a wise decision?
I am unable to share the entire controller code here as it is quite lengthy, but I have provided an online version for testing purposes. You can access it here.
To avoid having to create 60 records to observe the slow behavior, you can simply download this CSV file and import it into the app.
The password required for Edit Mode is: admin
I am hopeful that someone may have insights or tips on resolving this challenge!