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 CA8F1110F7 for ; Tue, 22 Jul 2014 18:45:08 +0000 (UTC) Received: (qmail 84744 invoked by uid 500); 22 Jul 2014 18:45:07 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 84683 invoked by uid 500); 22 Jul 2014 18:45:07 -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 84668 invoked by uid 99); 22 Jul 2014 18:45:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2014 18:45:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 199.193.200.193 as permitted sender) Received: from [199.193.200.193] (HELO hub029-VA-2.exch029.serverdata.net) (199.193.200.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2014 18:45:03 +0000 Received: from [10.0.1.26] (173.228.7.198) by east.exch029.serverdata.net (10.216.105.34) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 22 Jul 2014 11:44:36 -0700 Content-Type: text/plain; charset="windows-1252" MIME-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Which view is better optimized ? From: Jens Alfke In-Reply-To: Date: Tue, 22 Jul 2014 11:44:30 -0700 Content-Transfer-Encoding: quoted-printable Message-ID: <74D4D50F-ED91-4014-AD64-847F499FB0CA@couchbase.com> References: <9EB6071D-5A41-4D5A-8F55-90F86EEB6257@couchbase.com> To: X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 22, 2014, at 9:45 AM, Mike Marino wrote: > Multiple views also allows you to split them across design documents, = which > means they can be built independently and in parallel. On the other hand, if the views are re-indexed independently, then each = task is reading the documents out of the database. Whereas if the views = are in the same design document, the documents only get read once and = then passed to each view=92s map function. I would have thought the = latter would be faster, but it probably depends on details of the view = engine that I don=92t know about. =97Jens=