>> I can get the counts for each member like this >> http://localhost:5984/mydb/_view/sums/all?group_level=2 >> >> Which return something like >> >> key | value >> ================================== >> [group1,member1] | 5 >> [group1,member2] | 3 >> [group1,member3] | 1 >> [group2,member4] | 1 >> >> And I can get the sums for each group >> http://localhost:5984/mydb/_view/sums/all?group_level=1 >> >> key | value >> ================================== >> [group1] | 9 >> [group2] | 1 >> >> Is there away that I can request those values merged, so that it looks >> like this? >> >> key | value >> ================================== >> [group1] | 9 >> [group1,member1] | 5 >> [group1,member2] | 3 >> [group1,member3] | 1 >> [group2] | 1 >> [group2,member4] | 1 >> >> W/o having to make two separate requests?
If you have the results of group_level=2 for a range you can calculate the group_level=1 results trivially on the client. -- Chris Anderson http://jchris.mfdz.com
