What are you trying to randomize?
On Oct 22, 2013 6:23 AM, "Dave Cottlehuber" <[email protected]> wrote:

> On 22. Oktober 2013 at 14:29:16, Hank Knight ([email protected]) wrote:
> >
> >This returns 10 results:
> >http://localhost:5984/mydb/_design/type/_view/q?limit=10&key=%22xyz%22
> >
> >Is there a way for the results to be returned in random order?
>
> As Bob says, no, but you can fake it. see
> http://blog.chewxy.com/2012/11/16/random-documents-from-couchdb/basically you 
> either do it at view build time, and rebuild periodically, or
> do it at query time
> http://sea-krait.blogspot.co.at/2011/03/cleaner-pseudo-randomized-views-in.htmlby
>  abusing limits and skips.
>
> A+
> Dave Cottlehuber
> Sent with Airmail
>

Reply via email to