Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 65830 invoked from network); 11 Nov 2010 22:31:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Nov 2010 22:31:38 -0000 Received: (qmail 41665 invoked by uid 500); 11 Nov 2010 22:32:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41634 invoked by uid 500); 11 Nov 2010 22:32:08 -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 41626 invoked by uid 99); 11 Nov 2010 22:32:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 22:32:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mikebannister@gmail.com designates 209.85.216.52 as permitted sender) Received: from [209.85.216.52] (HELO mail-qw0-f52.google.com) (209.85.216.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Nov 2010 22:31:59 +0000 Received: by qwa26 with SMTP id 26so2386575qwa.11 for ; Thu, 11 Nov 2010 14:31:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=vaqQISlqrnXKX5H+TxuSSLllChyr2ZT+49O/41o95Oo=; b=MmDHQIkhcH4LdGJXIamcAW+tZINwfFjsMT6bZBCSV9ajKzjBmerGaRoQwbBMxZahjZ iH61p+mok1UWYtcvnb4L1ywpU+zmpzoHCtwiDaq/mhax1QYd2a1AgpyqgRc6RkE+k/sk R3gLOv2sJn/F7ZufkUVN0QWC4MQv6MDgsOsks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ndyhpxB3j437dzgm2CvCE4KV+SvQ0fZWahvz3nnx9bUt6CxMuh37jRW3bG11DmIjjP nKrH0KQs/yUYTALZdJseSUYcGKuqLdBUs5guCjRwpeIVtzdEevLkrcUDMMgwskMqVlt1 AVPqNqW23KKlsosn9BIWpJzvd680c4kVclUPk= MIME-Version: 1.0 Received: by 10.229.233.134 with SMTP id jy6mr1238808qcb.77.1289514699029; Thu, 11 Nov 2010 14:31:39 -0800 (PST) Received: by 10.229.85.4 with HTTP; Thu, 11 Nov 2010 14:31:38 -0800 (PST) In-Reply-To: References: Date: Thu, 11 Nov 2010 17:31:39 -0500 Message-ID: Subject: Re: First doc in a group? From: Mike Bannister To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001485eba8be917dbe0494ce89cb X-Virus-Checked: Checked by ClamAV on apache.org --001485eba8be917dbe0494ce89cb Content-Type: text/plain; charset=ISO-8859-1 What I failed to be explicit about initially is I'm already doing what Robert and Matthew are suggesting but it seems like that requires having a user list initially and I'd also like to get the latest doc for each user in 1 query rather than one for each user. Thanks everyone. -Mike On Thu, Nov 11, 2010 at 5:21 PM, Mike Bannister wrote: > Cory, cool thanks. Wasn't able to decide on my own if reducing was OK for > this kind of thing. > > Robert, but I need one document for each user, wouldn't that be a summary > of sorts? > > -Mike > > > On Nov 11, 2010 4:46 PM, "Cory Zue" wrote: > > You could emit the users as keys, and in your reduce function just > return the latest by date. > > > On Thu, Nov 11, 2010 at 4:35 PM, Mike Bannister > wrote: > > Yeah, I'm trying... > > --001485eba8be917dbe0494ce89cb--