3

I have created data in couchabse lite db and replicated it in couchabse server , but in replication unused data is also get created on server. is there any method to store pure data (without metadata) ?

is bucket shodowing is usefull for this problem ?

Ram
  • 233
  • 1
  • 17
  • 1
    Couchbase Lite needs the metadata to work. If you remove it, you won't be able to sync. Is that what you want? – Hod Aug 01 '16 at 17:25
  • @Hod I want to store the pure data without metadata, some where i have read in the case of bucket shadowing for complicated reasons it can't store that metadata directly in the original bucket it'll create shadow of bucket and store data in it. – Ram Aug 02 '16 at 04:34
  • Bucket shadowing is unrelated to the scenario you're describing, and Hod's comment is correct - the metadata is required for replication. – adamcf Aug 02 '16 at 17:09

1 Answers1

1

You can use couch base server 5.1 there the extra meta data is stored in XAttrs. And the document will not have meta data inside the document. If required this meta data can be found in the X- attributes.

For that you will need to set up the sync gateway in a manner where one sync gateway out of the cluster should have import_docs:"continuous" and all the sync gateway should have enable_shared_bucket_access:true.

By this change in the sync gateway configuration by using sync gateway 1.5 or 2.0 you will be able implement this functionality.

Also the good thing is, if the data is even changed directly on the server it will also flow to the devices.