When you query a view all the new documents since the last update (of the view itself) are indexed. Not only the single view, but also all the other views contained inside the same design document are updated. Keep in mind it when you decide the place to store the views. That’s the way it works. Of course this is done per database. Unless you use stale=true, in such a case the update happens after the query, but the query will not return the documents that haven’t been indexed.
> On 29 Nov 2016, at 22:47, Alan Kash <[email protected]> wrote: > > Hello, > > CouchDB starter here. > > How are the MapReduce views updated ? Before or after a new document is > added into store ? > > Do all document insertions go through some view process pipeline, then > finally to base document pool ? I am thinking in document stream > processing terms, where document ingress hits the *views processes* first > before finally ending up in the pool. > >
