couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stuart (SuperCoders)" <>
Subject Re: blocking during view generation
Date Wed, 23 Mar 2011 04:16:05 GMT
Ah well that makes sense.  I had the impression from the discussion  
that the server blocked more widely than just the view being generated  
which would have been very strange.

On 23/03/2011, at 3:12 PM, kowsik wrote:

On Tue, Mar 22, 2011 at 8:51 PM, Andrew Stuart (SuperCoders)
<> wrote:
> Say I put 100,000 documents into a production database.  Is that  
> database
> usable whilst the views are updated to include those new documents?

The recommended way is to add a new design/view (with the change) have
CouchDB take its time to index it and then switch over to this view.
This way the existing views are super fast and nothing gets blocked.
I'm sure this is in the wiki or the book.

And yes, the rest of the views are happily available without blocking
while this particular new view is "catching up".

> What exactly is blocked and under what circumstances?

Only the access to the new view which is getting indexed. Nothing else  

Message  protected by MailGuard: e-mail anti-virus, anti-spam and  
content filtering.
Click here to report this message as spam:

View raw message