Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 66926 invoked from network); 30 Apr 2009 10:51:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Apr 2009 10:51:02 -0000 Received: (qmail 37988 invoked by uid 500); 30 Apr 2009 10:51:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 37914 invoked by uid 500); 30 Apr 2009 10:51:01 -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 37903 invoked by uid 99); 30 Apr 2009 10:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 10:51:01 +0000 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 b.candler@pobox.com designates 208.72.237.25 as permitted sender) Received: from [208.72.237.25] (HELO sasl.smtp.pobox.com) (208.72.237.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Apr 2009 10:50:53 +0000 Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 3A3AB139A7; Thu, 30 Apr 2009 06:50:27 -0400 (EDT) Received: from mappit (unknown [80.45.95.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id BE05F139A4; Thu, 30 Apr 2009 06:50:24 -0400 (EDT) Received: from brian by mappit with local (Exim 4.69) (envelope-from ) id 1LzTqR-0003rS-7i; Thu, 30 Apr 2009 11:50:23 +0100 Date: Thu, 30 Apr 2009 11:50:23 +0100 From: Brian Candler To: Adam Wolff Cc: user@couchdb.apache.org, Paul Davis Subject: Re: Querying by foreign keys Message-ID: <20090430105023.GB14402@uk.tiscali.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Pobox-Relay-ID: B71C7C3A-3574-11DE-9FBC-D766E3C8547C-28021239!a-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Apr 29, 2009 at 01:37:24PM -0700, Adam Wolff wrote: > A minor correction to the preceding discussion: I think the number of > keys is 2^(n-1). Brian, in your example, you would have to emit "5" as > a key. Yes, my mistake - thanks.