Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 62481 invoked from network); 1 Aug 2008 03:43:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 03:43:00 -0000 Received: (qmail 41898 invoked by uid 500); 1 Aug 2008 03:42:59 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 41873 invoked by uid 500); 1 Aug 2008 03:42:59 -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 41862 invoked by uid 99); 1 Aug 2008 03:42:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jul 2008 20:42:59 -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 misterpib@gmail.com designates 64.233.184.226 as permitted sender) Received: from [64.233.184.226] (HELO wr-out-0506.google.com) (64.233.184.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 03:42:04 +0000 Received: by wr-out-0506.google.com with SMTP id c53so650797wra.20 for ; Thu, 31 Jul 2008 20:42:30 -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:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=RHcmXn8PXDxcjDfM2co5xX1mtvAcRGj/1bKkr5vntW4=; b=kHUNGpE3HDeiQ6+2oHwSreARSXaM67n6DdvNeJikCerr9+1jeHfmeHNlrCAWCTVRiP 0zn6iFJ49l1SvEjD8uMa7rFC+mjltyrTxTIbm/hCTkKY59S3wYAS/lMX6UVt/nXsyloa aHlKeOSEYJC41a3KgxTYDgFBU6qpu4jdZ6Azs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ce1HXOiX1NTZRqg8HV7wF5JzosB94oI58iFCkYRHWOo+YaUCx+t5eXP8wz5sq2l5eN eht1t2fzYxpmSCCCeReY5YOuW4FzTOxl7hWMTXDkYfi4DvLyDCcRKFS/PtFV5BIRl49D FHOw6y062aspfiL9aX91ZZDuO0I67HpEE6dbw= Received: by 10.90.102.15 with SMTP id z15mr13952119agb.83.1217562150107; Thu, 31 Jul 2008 20:42:30 -0700 (PDT) Received: by 10.90.75.12 with HTTP; Thu, 31 Jul 2008 20:42:30 -0700 (PDT) Message-ID: Date: Thu, 31 Jul 2008 22:42:30 -0500 From: "Paul Bonser" To: couchdb-user@incubator.apache.org Subject: Re: Is it possible to evaluate a view on a 20.000 documents database? In-Reply-To: <4aa4f4d60807311538h5a9c9d02k2dc507a0b566f34@mail.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> X-Virus-Checked: Checked by ClamAV on apache.org On 7/31/08, Demetrius Nunes wrote: > The view I am trying to create is really simple: > > function(doc) { > if > (doc.classe_id.match(/8a8090a20075ffba010075ffbed600028a8090a20075ffba010075ffbf7200c48a8090a20075ffba010075ffbf7200d9/)) > emit(doc.id, doc); > } Any reason you're using a regex rather than just using string comparison? -- Paul Bonser http://blog.paulbonser.com