Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 24944 invoked from network); 13 Apr 2009 18:58:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Apr 2009 18:58:49 -0000 Received: (qmail 94886 invoked by uid 500); 13 Apr 2009 18:58:48 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94791 invoked by uid 500); 13 Apr 2009 18:58:48 -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 94781 invoked by uid 99); 13 Apr 2009 18:58:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 18:58:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of wout.mertens@gmail.com designates 209.85.219.166 as permitted sender) Received: from [209.85.219.166] (HELO mail-ew0-f166.google.com) (209.85.219.166) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2009 18:58:39 +0000 Received: by ewy10 with SMTP id 10so2426826ewy.11 for ; Mon, 13 Apr 2009 11:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=fUChKDd28Daz4qKxTLTVhBca7kx1IGlkHDRBOrLUJaM=; b=HFTwddyGAqz2wlDnFpZzMyHrVMk/MU3QqiZq5w5uXjyZNzJreYg5DzFzpMBxq+2EWW P7JtBgweSB1h8FFoDSkk0mgc5bZXt0gw1nPl+pYlgP2UqmD5hOKs1w3T4Cl3G/ShKi7H U1i5ULgA0Lscqi7Wsb33rBDXwaf2Ll1l4DjFQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=e0scv/7P70SZiGZtMXeIyuQz9GcJ6sRqLpzhu0YPiu9JDt/1olAvKvlJ3mAM/PFqSo FkJrCUm8SFW90DUcSp99C9RYofEyjXnEW9RaRpoxEndDbV2meSlCYHkibPDLaOTLv4Ah 65eBNTgyPh1HonxYvqpy+PqCSukI09QAhSdTg= Received: by 10.216.53.199 with SMTP id g49mr1583092wec.49.1239649098913; Mon, 13 Apr 2009 11:58:18 -0700 (PDT) Received: from ?192.168.1.11? (5.96-201-80.adsl-dyn.isp.belgacom.be [80.201.96.5]) by mx.google.com with ESMTPS id m5sm13593197gve.22.2009.04.13.11.58.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Apr 2009 11:58:17 -0700 (PDT) Message-Id: <0E750857-CD66-4D7C-A2D4-2E9C5957A6A5@gmail.com> From: Wout Mertens To: user@couchdb.apache.org In-Reply-To: <9acd6e550904130015q21f00353h751970cfa1f3a23f@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Views per Database Date: Mon, 13 Apr 2009 20:58:13 +0200 References: <9acd6e550904130015q21f00353h751970cfa1f3a23f@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Apr 13, 2009, at 9:15 AM, Thomas Heller wrote: > But since every updated/new doc > has to pass any view (when called) I fear that many "writes" to the > forum > may force constant updates for other views on the site. How is that a problem? Note that many design documents may not be the best thing to do since (I believe) the current implementation runs all view functions in a single design document in one go. So views that get called often should be put together with other high-call views. Other than that, updating a view is a matter of updating a btree which is the same mechanism couchdb uses to store documents. If you have 30 views and adding a document changes all 30 views then you'll have 30 more writes on the view updates. Wout.