First comment:
https://github.com/couchbase/sync_gateway/pull/2490 https://github.com/couchbase/sync_gateway/pull/2462
see other comments: https://github.com/couchbaselabs/couchbase-mobile-portal/issues/676