Couchbase Questions: Map

Have a Question? Get it answered by our community

Matzz's picture
Asked 7 months 1 week ago
Latest activity 7 months 1 week ago

When rereduce is triggered

I play with couchbbase beer-sample. I use views to get list of cities in state.
My map/reduce functions work quite well but I wonder when rereduce is triggered.
It looks like after adding new document to bucket whole view is processed again from the begining. Even if I remove...

mwkarl's picture
Asked 9 months 3 days ago
Latest activity 9 months 2 days ago

View Map to return Key/Value pairs as Value

Is it possible to return Key/Value pairs in emit() using cb.query() in a similar way to the return value of cb.get() ?

cb.get() returns the complete object, however a cb.query() returns an indexed array as per the array ([ doc.x, doc.y , doc.z]) format of the emit() return value.