Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 60079 invoked from network); 23 Aug 2009 08:13:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 08:13:32 -0000 Received: (qmail 40227 invoked by uid 500); 23 Aug 2009 08:13:54 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 40141 invoked by uid 500); 23 Aug 2009 08:13:54 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 40131 invoked by uid 99); 23 Aug 2009 08:13:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 08:13:53 +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 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; Sun, 23 Aug 2009 08:13:42 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 8B05E15EDC for ; Sun, 23 Aug 2009 04:13:18 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :subject:message-id:mime-version:content-type; s=sasl; bh=xnkiuc Lz0u3phM806XksQl6hG1Y=; b=joMKZ0QIhZd8/QefK/Y9iXgEhailxLsgKcPWsh XbYAa0ia8vMIoHkg9dl/yaGHTc+nV69V7arNUTI7NOD6ShoNbk4DbwRkLSgh164G ct+PXqIxE2QuL9cLN8iJIdm8IZ7QPI8ZrUZHRXmAgqESFO9WOgTTYQbQluZPVDC+ D1tRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to :subject:message-id:mime-version:content-type; q=dns; s=sasl; b= PSNIT/VYKXPkmW+qaVipkFubaAj+S00gltm8HzjX5MIJvA6s1Kr+TVQyra6qpIqC P5eB1iw0toQRS6BIKkhNA+1VORGfToXCA2NtP8dRZiB1It2u/e5vGkdO5lHI+LBn BB29rZoAu/dhFhNQLECjrR4iQ8YC025NFsOgdKxjMCk= Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 7DD0C15EDB for ; Sun, 23 Aug 2009 04:13:18 -0400 (EDT) Received: from ubuntu.lan (unknown [80.45.95.114]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3444215EDA for ; Sun, 23 Aug 2009 04:13:12 -0400 (EDT) Received: from brian by ubuntu.lan with local (Exim 4.69) (envelope-from ) id 1Mf8CL-0004gp-RW for dev@couchdb.apache.org; Sun, 23 Aug 2009 09:13:09 +0100 Date: Sun, 23 Aug 2009 09:13:09 +0100 From: Brian Candler To: dev@couchdb.apache.org Subject: Groups of one Message-ID: <20090823081309.GA17716@linnet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Pobox-Relay-ID: D0A25146-8FBC-11DE-9149-CA0F1FFB4A78-28021239!a-pb-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org Quick question for someone who knows the code well: When doing a grouped reduce view, would it be easy to detect the case where a group consists of exactly one key? In that case, would it also be easy to add "id" to the result row like a normal view, and possibly also "doc" if include_docs=true were specified? (I'm doing this logic externally at the moment) Thanks, Brian.