couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarrod Roberson <jar...@vertigrated.com>
Subject Re: Question on selecting on reduce values
Date Sat, 01 May 2010 20:29:21 GMT
On Sat, May 1, 2010 at 3:04 PM, Cesar Delgado <beettlle@ymail.com> wrote:

> That's awesome Randall, thanks.  I have to play around with it a little
> more but at least I got something useful now.
>
> I just created a list that looks like this:
>
> function(head, req) {
>    var row ;
>    while (row = getRow()) {
>        if (row.value > 1){
>      send(row.key + "\n") ;
>    }
>  }
> }
>
> True that what I'm getting returned is just the name of the duplicated
> entries, but it's a good start.
>
> Cheers!
>
> -Cesar
>
> here is an example of a list function that does something like what you are
trying to do
http://www.vertigrated.com/blog/2010/04/generic-ad-hoc-queries-in-couchdb/

-- 
Jarrod Roberson
678.551.2852

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