incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Unkovsky <oil.cray...@gmail.com>
Subject Re: I'm going mad with reduce
Date Sat, 15 Aug 2009 10:57:08 GMT
2009/8/15 Thomas Bock <thsteinbock@web.de>:
> 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

You have then Standards as keys in view result.

-- 
DU

Mime
View raw message