incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Blakey <antony.bla...@gmail.com>
Subject Re: clustering based on 2 columns
Date Mon, 22 Dec 2008 04:16:51 GMT

On 22/12/2008, at 2:39 PM, paul jobs 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

I thought you were reducing over all appnames.

map:    function(doc) { emit([doc.date, doc.appname], doc.count) }
query:  ...?group=true&key=["2008-12-21"]

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

He who would make his own liberty secure, must guard even his enemy  
from repression.
   -- Thomas Paine



Mime
View raw message