priyath commented on issue #2040: [Sporadic] Views returning stale data URL: https://github.com/apache/couchdb/issues/2040#issuecomment-497203646 > > My question is if multiple documents are purged at a time, will a GET perform this said rebuild from scratch? > > my understanding is that the rebuilding of index depends on the condition here https://github.com/apache/couchdb-couch-index/blob/master/src/couch_index_updater.erl#L204. i.e. the value of `DbPurgeSeq` and `IdxPurgeSeq` when GET is performed. Based on the **purge_index(Db, Mod, IdxState)** function logic (forgive me if I am wrong, I am not familiar with Erlang syntax), it looks like if the purge sequence diff is greater than 1, a complete reset of the view indexes is done. This would mean that even if multiple documents are purged, the views should be rebuilt from scratch which would ideally get rid of any stale data.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
