couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: _rev for random view???
Date Wed, 04 Feb 2009 20:18:54 GMT
On Wed, Feb 4, 2009 at 11:15 AM, Troy Kruthoff <tkruthoff@blit.com> wrote:
>
> Anyone have thoughts on the best way to create a view of random documents?
>  I'm thinking a view with emit(doc._rev,null) would be sufficient for my
> needs, but thought I'd ping the list for collective knowledge ;)
>

I'm not sure how _rev works for randomness.

Math.random()

works fine.


-- 
Chris Anderson
http://jchris.mfdz.com

Mime
View raw message