Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 63511 invoked from network); 8 Mar 2011 18:34:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 18:34:41 -0000 Received: (qmail 35083 invoked by uid 500); 8 Mar 2011 16:45:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 35050 invoked by uid 500); 8 Mar 2011 16:45:20 -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 35041 invoked by uid 99); 8 Mar 2011 16:45:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 16:45:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simonmetson@googlemail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 16:45:13 +0000 Received: by wyj26 with SMTP id 26so200624wyj.11 for ; Tue, 08 Mar 2011 08:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:message-id:in-reply-to:references :subject:x-mailer:mime-version:content-type :content-transfer-encoding; bh=HHvUxOpbNBf226gs+kj5mCyjbV0BguqjTvOmiDTZoFs=; b=Ck7Xw/u9JLFb3bEqWrH8kK96Paw8NcbDFhZcSOdtVU8YKTsquO7QtaV9QQtFqHe1cx kMeVnW8+mFxt335L6Aw7vaP8tTAjDCdosLhgYoU4SR1stbToU10vWbBO50z6HA7Qc1Vn ozBl36FGMFuoxD7EDyO7+048INKPKPak/vz+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding; b=u2GXMudvcLb94dZ05e9pNPj8AcTErWiIGx5P0SVmXGw2dXi+g4TQYdyvTTBudSlBbo hpwKnAxCufriYy5gG0A9y7C3TUPchI/xU9k9cb70IVmuEo5PH0VXdktXgs2rRCY4TjTY 54qcH3obWSF73twOYQyS1mYjbW1hpXRVvrVTI= Received: by 10.216.181.76 with SMTP id k54mr3615138wem.58.1299602692844; Tue, 08 Mar 2011 08:44:52 -0800 (PST) Received: from hilbert.lan (93-97-111-13.zone5.bethere.co.uk [93.97.111.13]) by mx.google.com with ESMTPS id n52sm395719wer.24.2011.03.08.08.44.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 08:44:51 -0800 (PST) Date: Tue, 8 Mar 2011 16:44:49 +0000 From: Simon Metson To: user@couchdb.apache.org Message-ID: <272F5B70277A44AEBA8905AD3C98FD98@googlemail.com> In-Reply-To: <606D3F91-324B-4297-9DD4-8D17BDAED7A0@thenoi.se> References: <05D0B9A8-58E3-46F1-92BB-64750D444265@thenoi.se> <606D3F91-324B-4297-9DD4-8D17BDAED7A0@thenoi.se> Subject: Re: Views & design documents X-Mailer: sparrow 1.0.1 (build 589.16) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4d765d02_226f5320_61f" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org --4d765d02_226f5320_61f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline All views in one design document are calculated together (to minimise serialisation costs etc). In general this is a Good Thing(TM) as you find your views stay up to date from other activity. It sounds like this is a Bad Thing for you (maybe a view costs a lot more to calculate than the others in the design doc. In this case I'd pull out the offending view into it's own design, but make sure you have something that triggers it to update automatically - if it's costly you probably want to calculate it over small deltas of the data. Cheers Simon Sent with Sparrow On Tuesday, 8 March 2011 at 14:18, Martin Hewitt wrote: > On 8 Mar 2011, at 13:43, Adam Kocoloski wrote: > > > On Mar 8, 2011, at 6:27 AM, Martin Hewitt wrote: > > > > > Hi all, > > > > > > Just a quick question, if I have 5 views in one design doc, and request one of those views, and the requested view requires a rebuild, will CouchDB rebuild all 5 views in the document or just the one that was requested? > > > > > > Thanks, > > > > > > Martin > > > > All 5 views will be rebuilt. Regards, > > > > Adam > > If I were to split the view document into five documents, one for each view, would only the relevant view be rebuilt or would all views be rebuilt, regardless of how they were described? > > Martin > --4d765d02_226f5320_61f--