On Mar 6, 2016, at 9:12 AM, Mark 
<[email protected]<mailto:[email protected]>> wrote:

3. Potential feature but not in v1: The user can replicate tags among their 
copies of the program using the company’s replication server (using some 
variation of the “each user has their own database” solution).

This is pretty easy to do with Sync Gateway without using multiple databases: 
add the username as a property to each tag document to identify who it belongs 
to, then route those documents to per-user channels so they’re visible only to 
the user who created them.

Option 1: User tags are stored in the main CBL database in separate documents 
(userTag with a “relationship” to the myrecipe document). For feature #3, build 
a filtered push replication for the userTag documents.

This is the way to go (regardless of server type.) The queries are much easier 
to work with, and it’s simple to set up a push filter to screen out those 
documents if you want to keep them local.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/9D8350BC-8ECE-4A7C-BBC5-60E623545CB1%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to