Custom map reduce functions in couchbase -


i want use couchbase map reduce functionality. input follows:

{    "domain": "cnn.com",    "country": "usa",    "value": 1  }

each document represent single access domain specific source country, want able query count of accesses domain , country meaning want group (domain,country) , sum (value) how can write reduce function that?

wanted output :

{    "domain": "cnn.com",    "country": "usa",    "value": 5  }  ....  {    "domain": "cnn.com",    "country": "france",    "value": 2  }


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -