From couchdb-user-return-296-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Sun Apr 27 06:14:41 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 39417 invoked from network); 27 Apr 2008 06:14:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Apr 2008 06:14:41 -0000 Received: (qmail 32153 invoked by uid 500); 27 Apr 2008 06:14:42 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 32125 invoked by uid 500); 27 Apr 2008 06:14:42 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 32114 invoked by uid 99); 27 Apr 2008 06:14:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 23:14:42 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2008 06:13:56 +0000 Received: by fg-out-1718.google.com with SMTP id 22so4231926fge.26 for ; Sat, 26 Apr 2008 23:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=8GUqnLdYhhdB/X9lRh0bMDF80Tm7hqohCN1S09jiqHs=; b=xB/hWyNX3rTx+dO+9GjccHsODy1dGk2tWQHUG7GwWuHpsw4gu4T/KDM3IvMGsmxuxjI7HJCTWFQ4lMcDsTv10UDOTiBkt4VuXNeGOWohxRe9bEzRoYOk8m4D9RDjtIwCBgaeCW7sgIeaoNHUA2tnh6uMqMI40tBD8kd8DHQNd8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=bumOOrDXGFilvqNNMKzvijkyqBiQQKCPuvOo6thDeuTDY3eIzG9SSLTJWoZDWG56HbiLzQ9EXo+D6lRyb3Wx8OL0oditeBnkFJKKBrZTGystoN1Vb6O7ZlFPM2xp+G8HEWSG2O5E0NkTU5HmwcR2f4dlIewh7NDlvowb+SFaFJ4= Received: by 10.86.98.18 with SMTP id v18mr4834745fgb.20.1209276848225; Sat, 26 Apr 2008 23:14:08 -0700 (PDT) Received: by 10.86.57.13 with HTTP; Sat, 26 Apr 2008 23:14:08 -0700 (PDT) Message-ID: Date: Sat, 26 Apr 2008 23:14:08 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: Views In-Reply-To: <869B592C-9298-4C1C-88F9-3A29ECC7FA0C@gascard.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0B8FCF82-C889-4BF6-8CF8-AE9040BD76B5@gascard.net> <7E66C8D2-10AC-455D-9C12-E520E3FF6439@gascard.net> <50BF4DF7-9BEE-4914-B357-DB88D0C320D4@apache.org> <869B592C-9298-4C1C-88F9-3A29ECC7FA0C@gascard.net> X-Google-Sender-Auth: 169d4c93720c58fb X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Apr 26, 2008 at 6:12 PM, Anthony Mills wrote: > If I use a different startkey, endkey or key, the key-value list is not > rebuilt, it uses the keys from the first view. > Did I get it right? You got it. > Sorry about being obtuse. I have a project that can have over 10 million > documents and I need to understand how they can be indexed. In my experience, the best way to get a feel for what you can do is by playing around with data. I have a little Ruby script to batch data over from Postgres so I can try view functions etc. -- It's more fun if you work on a lot of data. A cool thing to remember is that you can call the emit function more than once in a view, with different keys and values, so views are extraordinarily flexible. I'm still getting by bearings on the "best" way to store certain kinds of data - I have a hunch that different schema/view styles may turn out to be more efficient than others. Chris -- Chris Anderson http://jchris.mfdz.com