couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Blakey <>
Subject Re: clustering based on 2 columns
Date Mon, 22 Dec 2008 00:37:01 GMT

On 22/12/2008, at 9:19 AM, paul jobs wrote:

> I want to do what map2 does but only for say "2008-12-21" ie today
> how do i get today's statistics?

Split your date into three components and use them as the key e.g.


This will allow you to get partial reduce results for just one day, or  
month, or year.

Antony Blakey
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787

Reflecting on W.H. Auden's contemplation of 'necessary murders' in the  
Spanish Civil War, George Orwell wrote that such amorality was only  
really possible, 'if you are the kind of person who is always  
somewhere else when the trigger is pulled'.
   -- John Birmingham, "Appeasing Jakarta"

View raw message