Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC7614A2B for ; Fri, 10 Jun 2011 13:15:39 +0000 (UTC) Received: (qmail 22729 invoked by uid 500); 10 Jun 2011 13:15:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22694 invoked by uid 500); 10 Jun 2011 13:15:37 -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 22686 invoked by uid 99); 10 Jun 2011 13:15:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 13:15:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omarshall@facilityone.com designates 216.135.43.146 as permitted sender) Received: from [216.135.43.146] (HELO secure.facilityone.com) (216.135.43.146) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 13:15:30 +0000 X-Footer: ZmFjaWxpdHlvbmUuY29t Received: from f1dtomarshall.lou.c2fs.com.facilityone.com ([192.168.10.152]) by secure.facilityone.com (Kerio Connect 7.2.0) for user@couchdb.apache.org; Fri, 10 Jun 2011 09:15:07 -0400 Date: Fri, 10 Jun 2011 09:15:07 -0400 Message-ID: <87tybxsu90.wl%omarshall@facilityone.com> From: Owen Marshall To: user@couchdb.apache.org Subject: Re: One view per "query"? In-Reply-To: References: <64497E8E-7AEA-4E30-A44E-5AD285887150@challet.eu> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.8 Emacs/24.0.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org At Fri, 10 Jun 2011 12:05:20 +0200, Daniele Testa wrote: > Another question I have is what benefit do I get when putting several > views in one design document? Views within the same design document are indexed together, saving space and speeding up view updates. > As I understood, this just causes problems like that all views needs > to update, thus locking all the views in the design document. I was also concerned about this at first, but in my experience, CouchDB updates views *very* quickly. My application's write rate is significantly less than CouchDB's update rate. If your application doesn't behave like that, you can always: * query with stale=ok as appropriate * hit the views more often, reducing latency -- Owen Marshall FacilityONE http://www.facilityone.com | (502) 805-2126