couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Bannister <mikebannis...@gmail.com>
Subject Re: First doc in a group?
Date Thu, 11 Nov 2010 22:31:39 GMT
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 <mikebannister@gmail.com>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" <czue@dimagi.com> 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 <mikebannister@gmail.com>
> wrote:
> > Yeah, I'm trying...
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message