I’m not sure whether group level should always use a reduce function or not.
Let’s take the example where the key in the emit call is [location, name].
Using group level = 1, get counts for rows with the same location and group
level = 2 to get rows with the same location and name. But in many other places
throughout an app, I might just need the docs in a given location with any
name, in that case I use ["aplace"] for the start key and ["aplace", {}] as the
end key.
Depending on the info the app requires, you can use different query options on
the view. The full map function would definitely help, I’m not familiar with
two emit calls in the map block (even less so when using group level at the
same time).
James
--
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/etPan.57145e14.3ad10c57.20d%40MacBook-Pro-4.local.
For more options, visit https://groups.google.com/d/optout.