Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 18482 invoked from network); 3 Aug 2008 21:30:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2008 21:30:06 -0000 Received: (qmail 84810 invoked by uid 500); 3 Aug 2008 21:30:05 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 84781 invoked by uid 500); 3 Aug 2008 21:30:04 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 84770 invoked by uid 99); 3 Aug 2008 21:30:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 14:30:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 74.125.46.155 as permitted sender) Received: from [74.125.46.155] (HELO yw-out-1718.google.com) (74.125.46.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 21:29:06 +0000 Received: by yw-out-1718.google.com with SMTP id 5so966448ywr.0 for ; Sun, 03 Aug 2008 14:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=foTeBBjmAWqaK/7JMrp47bS59z/r3Xij9I90A8PoAk0=; b=ZA0Aw7yqj2Tet09tEgMZkn2hx+1Yg8aUysgmHZxvjNo0hHiqF7VnfPki/63ux2dJgj pcq0Ilt4Ou/09F2rkQYgX6H1EVulkOWRYXlA9kZn9iaOZbvuAWxX5BdX4VGE7tmZz6JN M7Y9HBLOSwVDjU8jz/n5WcMGSFQRyfpJcm1vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=mRJWD2CkGjvx8AMXpAjDMWqmHRAbON6OIlb6sgvFNZ3nUUa28nCaxEirRI/HQd04ki H/5c0415LfsEpWtESurGgU4DnuQmBFsBZf4FLGkU/UuGAfi3qCjq4QMuxQZ7IhLXmaZA gGGKOgJdRdtz71yU+aKvaatu2cO5EruInPaLk= Received: by 10.150.49.16 with SMTP id w16mr134973ybw.26.1217798973335; Sun, 03 Aug 2008 14:29:33 -0700 (PDT) Received: by 10.151.44.19 with HTTP; Sun, 3 Aug 2008 14:29:33 -0700 (PDT) Message-ID: Date: Sun, 3 Aug 2008 14:29:33 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: Is it possible to evaluate a view on a 20.000 documents database? In-Reply-To: <12EA0EAA-08E4-4BF2-BF60-6D6F4BB428C9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4aa4f4d60807311410m6077d984x83cb3b5d4e8c6f17@mail.gmail.com> <06C596D4-E5D1-4161-BFF1-D3A40FFB4627@gmail.com> <4aa4f4d60807311538h5a9c9d02k2dc507a0b566f34@mail.gmail.com> <20080801160848.GA12647@ginosko.ndrix.org> <4aa4f4d60808011006y7451ad7dnc4483f0c0d75f7e7@mail.gmail.com> <12EA0EAA-08E4-4BF2-BF60-6D6F4BB428C9@gmail.com> X-Google-Sender-Auth: c517430bbd6b539d X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Aug 1, 2008 at 11:06 AM, Ed Finkler wrote: > > On Aug 1, 2008, at 2:05 PM, Chris Anderson wrote: > >> That's how I do it. I've got a bunch of Ruby scripts that do things >> like replicate 1% of the database, clone a map index to documents in >> another db, etc. Maybe a cleanup-for-release day is in order. > > Yes please! 8) I cleaned up subset.rb and remap.rb for release - you can find them here: http://github.com/jchris/couchrest/tree/master/utils subset.rb takes a source and a target database, and randomly replicates some percentage of the documents from the source to the target. remap.rb iterates over a map view yielding an array of values as associated with each unique key. It creates a document in a separate target db for each key. -- Chris Anderson http://jchris.mfdz.com