Selecting one row in a view out of many possible isn't what reduce is for. I try not to think of it as reducing a set of view results to a smaller set but rather reducing each and every entry in the view to something smaller.
The fact that reduce gets multiple view rows to work on at once is just an optimization. I think its better to think of reduce as working on exactly one view row at a time then rereduce the result to get final answer. On Nov 11, 2010 5:22 PM, "Mike Bannister" <[email protected]> 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" <[email protected]> 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 <[email protected]> > wrote: >> Yeah, I'm trying...
