couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thbo <thsteinb...@web.de>
Subject Re: I'm going mad with reduce
Date Fri, 14 Aug 2009 15:29:19 GMT

>
>> Thank you for answering but ...
>>
>>
>>  >Why don't you simply emit a row for each value in Standard? That will
>>  >then become unique rows in the reduce. You'll have to read multiple
>>  >rows to get all the values though.
>>
>
>I guess the intent was doing something like
>
>map:function(doc) {
>  emit(doc.Standard,null);
>},
>reduce:function(kk,vv,rf){
>  return null;
>}
>
>and query view with &group_level=1

yep!
grouping! is exactly what I want.
I thought I rtfw (wiki), but ...

Thank you for kicking me!
Regards
Thomas

>
>You have then Standards as keys in view result.
>
>--
>DU

Mime
View raw message