Re: Number of documents replicated less than those reported by Sync Gateway

2017-12-08 Thread Adam Wilson
Thanks, thats a good idea to diff for the missing ones. I just wondered if its behaviour thats been seen before. The sync function: function(doc) { if (doc.category == "free") channel("free") channel(doc.wordlist); // This is the part that I expect to replicate the same docs as the SG

Re: Number of documents replicated less than those reported by Sync Gateway

2017-12-07 Thread Traun Leyden
It's hard to speculate without knowing more about your setup. For example, depending on your sync function, certain docs might not replicate down to the device, but still be available via the SG view. Does it appear sporadic or is it the same behavior each time? Also, you might try getting

Number of documents replicated less than those reported by Sync Gateway

2017-12-06 Thread Adam Wilson
Following on from https://forums.couchbase.com/t/sync-replication-progress/14987 I have a view on Sync Gateway that counts the number of documents in a view. This view is basically the same as a channel I have defined. I have also defined the same view in Couchbase Lite (iOS, v1.4). I am