incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "paul jobs" <webjog...@gmail.com>
Subject Re: clustering based on 2 columns
Date Mon, 22 Dec 2008 03:12:53 GMT
how to query this for a particular say day?and is it possible to pass key
arguments in the futon view interface when we run the view

On Sun, Dec 21, 2008 at 4:37 PM, Antony Blakey <antony.blakey@gmail.com>wrote:

>
> 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.
>
> [doc.appname, doc.date.year, doc.date.month, doc.date.day]
>
> 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"
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message