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:18:12 GMT

On 22/12/2008, at 2:43 PM, paul jobs wrote:

> this is hte result i need but for a particular date
> Key
> Value   
> *"animgifts"*88653*"anoninbox"*31*"areucute"*698*"bdayecards"*12756*
> "crushometer"*252*"datevalentine"*637*"igarden"*43*"luvgifts"*83*
> "newstickers 
> "*585*"ownmenow"*72*"animgifts"*88652*"anoninbox"*31*"areucute"*
> 698 
> *"bdayecards 
> "*12746*"crushometer"*252*"datevalentine"*637*"igarden"*43*
> "luvgifts"*83*"newstickers"*585*"ownmenow"*72
> function(doc) {
>  if(doc.date=="2008-12-21")
>  emit(doc.appname, doc.count);
> }

Well, that view would probably be a temp view, and hence very  
inefficient.

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

Always have a vision. Why spend your life making other people’s dreams?
  -- Orson Welles (1915-1985)


Mime
View raw message