OK:slight_smile:
- Ionic Storage:
Pros:
- very simple get/set API
- configurable, adapters etc
- part of Ionic offering, which hopefully means good support
- small size (8kb?)
Cons: - almost no control over db, not sure you can index data etc
- syncing data with server needs custom code (we wrote it)
- no bulk type operations (does have .forEach method though)
- supports storage of blobs but not as attachments, both dbs have issues with binary data I think. We saw some behaviors and super hard to triage issues when we stored binaries locally. Once we removed those - issues were gone…
- PouchDB
Pros:
- nice syncing mechanism with other couchDB (although couchDB is considered to be slow, for lazy replication its good)
- bulk operations, built-in conflict resolution
- extensive API, you can do a lot of things, indexes etc
Cons: - more complex API to work with. For a put you almost always need to read document and use its revision to store it back etc
- basically complexity led to more bugs in our case.