I've built an app that saves records in Local Storage.
I've just recently realize that by design I'm chocking the CPU by blocking the DOM, as I'm reading lots of records from a single key using ng-repeat.
My idea is to migrate to PouchDB, but I think I'm missing some concepts.
Right now my data structure looks like this:
- Key(cars) - Value(objectCar1 - objectCar2 - objectCar3 ...)
- Key(drivers) - Value(objectDriver1 - objectDriver2 - objectDriver3...) -
- Key(records) - Value(objectRecord1 - objectRecord2 - objectRecord3 ... up to Record70 now, starting to give problems)
I've been reading Pouch and CouchDB documentation, and if I were to switch to PouchDB, then I just have to throw objects into the DB willy-nilly and then iterate through it looking for parameters in order to filter?
Right now a NoSQL database looks like a big bag where to store data without much order.
Or am I missing something?