Hi Couchbase_Gurus,

I recently started using CBL in android and like to know the best practice 
for managing user-profile documents. Please find below the usecase -

1) Once a new user signup, we like to have a user-profile created for them 
with UUID as their email-id(username).  This will be written to CBL and 
kickstart a push replication to sync_gateway. At this point of time, we 
like to have a separate channel created for the user's profile to deal with 
sync_gateway. How should we handle it?

2) Once the user is signed in,  the user can enter into the user profile 
screen and edit some of the fields. What's the best approach to deal if the 
document has already been updated from different mobile? Should we make 
sure to pull first and then allow user to edit? How should we deal if the 
network connectivity is lost at this point of time? Should we just schedule 
a continuous pull and just write to CBL always?

-Karthik

-- 
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/84b908ba-8603-459f-8aec-a421b0211452%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to