I am migrating an application from Bucket Shadowing to direct access of Sync Gateway data via the SG REST API, as recommended in github.com/couchbase/sync_gateway/wiki/Bucket-Shadowing.
Although, in andy’s contribution on Feb 25 in Cannot query view in sync gateway via user port, it’s stated otherwise, I suspect that, after deleting a document, subsequent view queries, done following http://developer.couchbase.com/documentation/mobile/1.2/develop/guides/sync-gateway/accessing-cb-views/creating-and-using-a-view/index.html, appear to work on a stale index that still contains the deleted document.
Unfortunately, there is no API reference for querying SG views via REST, apart from the sketch quoted above. That leaves me with the question: Is there any way, when querying a view in an SG bucket via REST, to set the stale parameter to false, so that I can be sure the view will deliver up-to-date results? I know there are performance issues with requiring stale = false, but inconsistent results aren’t an alternative.