Yes - exactly! Which was why I was hoping the reduce function would help. I have managed to do this using some additional middleware (Ruby Sinatra), but that seems to defeat the purpose of using something like Couch in the first place! Carl Bourne | Senior Sales Engineer | mobile: +44 (0) 7770 284294 | www.venafi.com On 6 Oct 2012, at 21:58, Aurélien Bénel wrote: >> I still not understand why you need to count the docs with the same exact timestamp > > Ah I think I understand now... You want to select by (exact) date but group by countries. > Hmm, then it's not hierarchical, you have two different dimensions. Then my solution cannot help you. Sorry. > > > Regards, > > Aurélien > >