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