I have an ionic 3 PouchDB App that works on some Android devices (e.g. 4.4 & 5.0) but not on others (e.g. 7.0.1). It works on all iPhones! I suspect this is due to some Android versions restricting the number of Webview DBs to one per App.
I have read that one can get around this is by using SQLite but SQLite is a lot slower and is particularly slow for DB documents containing images (which I have). So I would like to look at replicating my two CouchDB database to a single PouchDB database.
I have a couple of questions:
- Is there any reason why this would not work as a way to get around the Android DB limit? I will have a
localDB.replicate.from(remoteDB)
for each of my two remote DBs (called 'news' & 'events'). - Currently each of my CouchDB databases have documents with IDs like:
2017-1
and2017-12
for the first and last month of 2017. If I have the two DBs replicating into the one PouchDB will they have to have unique IDs? If not how would I differentiate?