Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 17149 invoked from network); 4 Feb 2009 20:19:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Feb 2009 20:19:27 -0000 Received: (qmail 70465 invoked by uid 500); 4 Feb 2009 20:19:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70069 invoked by uid 500); 4 Feb 2009 20:19:24 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 70058 invoked by uid 99); 4 Feb 2009 20:19:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 12:19:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.217.15 as permitted sender) Received: from [209.85.217.15] (HELO mail-gx0-f15.google.com) (209.85.217.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2009 20:19:15 +0000 Received: by gxk8 with SMTP id 8so2369554gxk.11 for ; Wed, 04 Feb 2009 12:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=+rKZNyAE4PaZb9TPf2pfHSsWOpYOgqlVTptU2QYj2NU=; b=Fkisk8OnMH6V8nIESR8Ld18ZjKtL9yWdRBvd8Z6AWJ9YPjFJaZCdMmWwKKAaOdqWBa IMFem+ZGD3CoqYQEcty/2fLlDg7beP7PkacNijHQ/edWrgqH/WPRxSPtycliCOHi73Td nk5AJt51S2E2TccXmVaS3ZlvbfjOK0CHRkJBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=v2ykrJJv2aoLlubbjI8++5IfLJ2Mp4SnkDV+JklVwDjJgJTFyPclJYU2JhEDets2gf QJXaEbrFUVWpTIBDhFgs5EbjMzwUKt37J1+9ciXrzlkAPiFajjkM6th4XgFUM70Aj2iV mupM+ATQyANSQKtc65gxexfwtCyy65lJTpIvg= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.150.91.4 with SMTP id o4mr3949591ybb.207.1233778734380; Wed, 04 Feb 2009 12:18:54 -0800 (PST) In-Reply-To: References: Date: Wed, 4 Feb 2009 12:18:54 -0800 X-Google-Sender-Auth: c6404579a17f08bb Message-ID: Subject: Re: _rev for random view??? From: Chris Anderson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 4, 2009 at 11:15 AM, Troy Kruthoff 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