We have been using Sync Gateway and CouchBase Lite for a new development, at first we were assigning all documents to the public channel
!. After a while we moved to named channels, using the usual
channel functions in the
When a new user is created and it creates the replication with CouchBase Lite I see that the db in the mobile device has 2500 documents after a fresh login. I found this weird, what is happening is that the mobile makes a request to
_changes returning the documents that were in the public channel with the
A request using the same user with the
active_only flag would return 0 documents. New documents that were not assigned to the public channel do not appear in the results of
My first question is: Is there a way to stop having this notification for fresh users? I guess the answer here is no, since it is impossible to know if a request to changes comes from a new user or not, and I guess the
active_only flag is there for a reason.
My second question is: For security reason, if I put by mistake something sensitive in the public channel and remove it later, its id will be forever returned in the
_changes. Is there a way to simply stop that?
We have been using react-native CouchBase Lite 1.3. with Couchbase Sync Gateway/1.4.1(3;ddffd85).
Thank you for your answers.