I come from a Mysql background and I'm using Pouchdb now. I'm used to the SQL pattern of having 1 database and many tables per app.
In pouchDB it's different, because data is not stored in tables but in documents. So, in my app, I have a database for tasks, created with:
var db = new PouchDB('tasks', {revs_limit: 1, auto_compaction: true});
This is the main database for my application, but now I need to also store settings, such as "last_visit_date", "language_preference" and others.
So, I have 2 questions:
- Should I create only one database and then store different data
sets in sub objects or can I create multiple databases to store this data Are there any drawbacks on the second option? - I haven't gotten into syncing with cloudant or couchdb yet, but I will have to in the future. If I have 2 databases (or more) will it make the sync process more complicated, slower or worse somehow?