Couchbase document max size delete

If Document A is inserted into the CouchbaseLite on a Mobile Device and the size is smaller than 20MB then the document will be synched to Couchbase Server via the Sync Gateway.

Now I have the following questions:

  1. What if Document A is mutated on the Couchbase Server and the size is now greater than 20MB. Will the document get synched into the CouchbaseLite?
  2. What if Document A is mutated on the Couchbase Server and the size is now greater than 20MB and then the document will be deleted. Will the delete get synched into the CouchbaseLite and purge the document although the size was greater than 20MB?

Thanks in advance.

Both of these scenarios are not possible. The maximum document size in Couchbase Server is 20MB, so any server side writes (including Sync Gateway) will fail if the resulting document is over 20MB.

1 Like