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 04:11:13 GMT
/invites/_view/invites/bydate?count=100&group=true&key="2008-12-21"

{"rows":[{"key":"2008-12-21","value":114651}]}



On 12/21/08, paul jobs <webjogger@gmail.com> wrote:
>
> antony this doesnt help
> Key
> Value  *"2008-12-20"*17854*"2008-12-21"* 114536
> i get this result when i give your map-reduce view, it doesnt collate by
> appnames after collating by date
>
> On 12/21/08, Antony Blakey <antony.blakey@gmail.com> wrote:
>>
>> map:    function(doc) { emit(doc.date, doc.count) }
>> reduce: function(keys, values, rereduce) { return sum(values) }
>>
>> query:  ...?group=true&key="2008-12-21"
>>
>> Antony Blakey
>> --------------------------
>> CTO, Linkuistics Pty Ltd
>> Ph: 0438 840 787
>>
>> Success is not the key to happiness. Happiness is the key to success.
>>  -- Albert Schweitzer
>>
>>
>

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