gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.34k stars 461 forks source link

How to improve performance for large datasets #265

Open johannesjo opened 7 years ago

johannesjo commented 7 years ago

In an offline application I'm developing I have quite a big dataset I'm currently managing with ngStorage. I'm wondering if there is a smart way to improve the performance. While some of the data is read only most of the time. That every change to the storage triggers a $rootScope.$apply() and the storage is updated on every $digest cycle is quite a hit on the performance. Is there a way to decouple spefic datasets while leaving others untouched or maybe another smart way to improve the performance for my use case?