I'm new to couchDB and pouchDB, so please forgive any obtuse ideas. I'm also an old fart that is having a tough time grasping modern programming concepts.
That said, here's a genericized version of what I'm trying to do and I'm hoping someone can provide some perspective on the feasibility of using couch/pouchDB.
Let's pretend 10 different phone apps in 10 different regions launch an app.
When the app launches, it calls a couchDB view and retrieves the 20 nearest retail stores (which includes a listing of each stores products).
Question #1: I'd like to persist this list of stores and products in pouchDB. So, I'm doing a reverse pouch. A pouchR, if you will. So I take data from couchDB and stick it in pouchDB for local use.
The user isn't going to manipulate this data. It's just there for local reference.
Question 1A: Is this a smart thing to do and/or a common use of pouch?
Question 1B: I've never written a phone app, but I'm assuming I can store this to a local file store for subsequent usage or when offline. Is that a fair assumption?
The user will then pick a store and see a listing of the stores products. The user can ask a question about any product.
These questions will go into a local pouch which will get synched with couch.
It's important that the user on Phone1 isn't going to see the quesions from a user on Phone 2 (even if they are asking questions about the same product in the same store).
A separate application is going to make use of the couchCB.questions data on a more global basis.
Question 2A: Is it true that pouchDB --> couchDB synching is one way (unless I programatically do a pouchR on my own).
Question 2B: Are there any pitfalls I'm missing by having the many phones push data to the single couchDB table?
Many thanks for any advice.