Couchbase Questions: Map

Have a Question? Get it answered by our community

Matzz's picture
Asked 4 months 5 days ago
Latest activity 4 months 4 days 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 5 months 3 weeks ago
Latest activity 5 months 3 weeks 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.

...