On Sunday, 17 April 2016 03:07:33 UTC+2, Jens Alfke wrote: > > Yes, that’s pretty much how you’d do it with map/reduce. You also have a > reduce function that counts the number of values, and then use a > groupLevel=1 in the query, right? >
Hmm, no. If I do that I end up with rows with just the orderId and a count (or not ?), but I also need the name. Or should I only emit the orderId and use prefetch to get the order properties ? But I'm only interested in prefetching Orders, not Orderlines. Just to be clear: I want to (efficiently) present a UI like so: Order #1, Jones, 3 lines Order #2, Smith, 6 lines etc -- 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/d95b39e7-c2c0-4977-bce8-33cfa9b626ca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
