Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229350

PouchDB with Ionic 3 - Which storage system should I use?

$
0
0

OK:slight_smile:

  1. 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…
  1. 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.

Viewing all articles
Browse latest Browse all 229350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>