Hi,

I'm new to CouchBase, I have a quick question: Is it possible to count the 
results of a view without bringing the results? for example you maintai a 
view with the following

{"key":["user1",28],"value":1},


where the key is the user and his/her age and the value is the count the result 
of my map reduce is as follows:


http://localhost:8092/default/_design/dev_users/_view/users_age?full_set=false&group=true&connection_timeout=60000
 
<http://localhost:8092/thomas/_design/dev_uusers/_view/unique_users?full_set=false&group=true&connection_timeout=60000>


{"rows":[

{"key":["user139",28],"value":1},
{"key":["user162",24],"value":1},
{"key":["user194",26],"value":1},
{"key":["user202",25],"value":1},
{"key":["user202",28],"value":1},
{"key":["user243",26],"value":1},
{"key":["user244",24],"value":1},
{"key":["user252",21],"value":1},
{"key":["user268",24],"value":1},
{"key":["user298",30],"value":1},
{"key":["user330",26],"value":1},
{"key":["user368",29],"value":1},
{"key":["user436",24],"value":1},
{"key":["user437",22],"value":1},
{"key":["user530",28],"value":1},
{"key":["user606",23],"value":1},
{"key":["user611",29],"value":1},
{"key":["user640",25],"value":1},
{"key":["user668",28],"value":1},
{"key":["user731",28],"value":1},
{"key":["user853",29],"value":1},
{"key":["user895",23],"value":1},
{"key":["user926",25],"value":1}
]}



What i want is to count these rows (with full_set= 
<http://localhost:8092/thomas/_design/dev_uusers/_view/unique_users?full_set=false&group=true&connection_timeout=60000>true).
 


Btw. Is it possible to do a map reduce to a view?


Thank you for your time

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to