On Mar 2, 2014, at 2:36 AM, archit agarwal <[email protected]> wrote:

> Seems straightforward now & feels a bit stupid to not be able to figure it 
> out earlier. 

Don't feel stupid! Map/reduce is a different approach than SQL-type queries, 
and it takes a little while to wrap your head around it. Unfortunately I don't 
know of any really good docs that explain the tricks.

FYI, there's a view sort of like this in the CouchChat demo app; you might be 
interested in looking at it.  This view does have a reduce function, which is 
used to compute the message-count, mod-date and last speaker for each chat room.

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/5EE93A6D-249F-479A-A1C5-427C8648B8D1%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to