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 03:50:26 GMT
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
View raw message