Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 5621 invoked from network); 21 Mar 2011 21:26:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 21:26:54 -0000 Received: (qmail 71384 invoked by uid 500); 21 Mar 2011 21:26:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 71353 invoked by uid 500); 21 Mar 2011 21:26:52 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 71343 invoked by uid 99); 21 Mar 2011 21:26:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 21:26:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 21:26:47 +0000 Received: by vxk12 with SMTP id 12so6843614vxk.11 for ; Mon, 21 Mar 2011 14:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=d4KRnmy57riw78qbuPyGHwIC1z9HoVaeJvpdpUPX/fs=; b=Q3Em+gNIV16zZIyMJPZiWJMXc56CeSD3ykp23VPncut245sNldTAe0n8//sZrDezcW znzy0MuP6EKWg4DiFLJXkt06J8YPz+7hP+W9yL3CnF6D+pFJmipnjBMv8Pn7iowqKo3Z WHx/J1RzrwLtn4GvDohdkJ0XKzKfGF3vG/yo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=kHat7DfXnb+SkqIGdp5taH0eRuA+K/r+nMlnkC2xxEZOvdFpYjLn3AHkKXSoWiJ/Gf rtqbKWgrFt7Jwmw6CoLeE7bf9ams7c2LLM/m9jYMxYR57//D4mVp/UozvCWMUm+LF9XX QN17t0s6vtSOGJ4lcJFt/JNAeRdBmp/J4nKPc= Received: by 10.220.50.82 with SMTP id y18mr1255719vcf.257.1300742786183; Mon, 21 Mar 2011 14:26:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.157.9 with HTTP; Mon, 21 Mar 2011 14:25:46 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Mon, 21 Mar 2011 17:25:46 -0400 Message-ID: Subject: Re: blocking during view generation To: Mark Hahn Cc: user@couchdb.apache.org, Mark Hahn Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Mar 21, 2011 at 4:49 PM, Mark Hahn wrote: > What is the disadvantage to having a different design doc for each view? > > On Mon, Mar 21, 2011 at 11:05 AM, Paul Davis > wrote: >> On Mon, Mar 21, 2011 at 1:24 PM, Mark Hahn wrote: >>> I have noticed that all view queries are blocked for some time when I j= ust >>> change one view. =A0This seems like it is going to be a serious problem= when >>> my db grows. =A0Is there someway to avoid this in production? =A0I've n= ever seen >>> mysql or any other db block for any reason. >>> >> >> Also of note is that the updates are grouped at the _design/doc level, >> so if you want to update some subset of views individually you just >> need to split them amongst a set of _design/docs. There's also a >> scheme that lets you create a temporary _design/doc that can be moved >> over top of the existing version to have quickly updated views, but >> this approach requires you to have the disk capacity to have both >> versions built on disk simultaneously. >> > Slightly more disk space used and longer total view build times due to overhead of passing each doc to the view engine multiple times. Though you can build multiple view groups in parallel if you have the CPU resources. Its hard to say exactly what the difference for each bit would be as it depends directly on your specific data and usage patterns.