Hello, I know that couchbase can sync the data from mobile client to the remote server. But If I want to sync the data from the server to the mobile client, can it meet my requirement?
For example, I use couchbase server SDK to insert a document. Can it sync to the client’s couchbase lite database automatically? Is there any document about this?
Thank you.
yes, you can, you can use Couchbase Server 5.0 & Sync Gateway 1.5. FYI
The sync metadata is added by and used by the Sync Gateway for syncing documents over to the clients. It’s not used by CB server. With SG 1.5/CB5.0, the sync metadata is no longer stored in the document and that’s why you don’t see it in the document via the admin console… It is stored in XAttrs. There is currently no way to N1QL query for or view the XAttr information via CB.
Well. I am not so sure if it’s a good idea design-wise to update your application’s data model to retrofit it with …
Hi
If you are using Sync Gateway 1.4 or earlier and Couchbase Server 4.x, then your understanding is right. There is a concept of bucket shadowing that will allow you to handle the sync w/ mobile clients but that is being deprecated so I wouldn’t recommend taking that approach.
The good news is that with Sync Gateway 1.5 / Couchbase Server 5.0 , you should have two-way sync working seamlessly between the mobile clients and server. Developer builds are available to try out -https://developer.…