Hi Carl, Try always to do more with your index. This is indeed where the power of Map/Reduce lies.
map:
function(o) {
emit([o.date, o.country], null);
}
reduce:
_count
Then query it with group=true.
Regards,
Aurélien
P.S. If you did put "date" after "country", and if date were written as an
array, you could choose the time slot at query time (year or month, day, hour,
etc.) by changing the "group_level".
