Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 30911 invoked from network); 1 Aug 2008 14:12:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 14:12:11 -0000 Received: (qmail 39218 invoked by uid 500); 1 Aug 2008 14:12:09 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 39191 invoked by uid 500); 1 Aug 2008 14:12:09 -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 39180 invoked by uid 99); 1 Aug 2008 14:12:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 07:12:09 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.46.155] (HELO yw-out-1718.google.com) (74.125.46.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 14:11:14 +0000 Received: by yw-out-1718.google.com with SMTP id 5so545624ywr.0 for ; Fri, 01 Aug 2008 07:11:29 -0700 (PDT) Received: by 10.114.46.11 with SMTP id t11mr11587245wat.211.1217599888575; Fri, 01 Aug 2008 07:11:28 -0700 (PDT) Received: by 10.114.254.4 with HTTP; Fri, 1 Aug 2008 07:11:28 -0700 (PDT) Message-ID: <64a10fff0808010711q7a35447en43cb03b04931108@mail.gmail.com> Date: Fri, 1 Aug 2008 10:11:28 -0400 From: "Dean Landolt" To: couchdb-user@incubator.apache.org Subject: Re: Is it possible to evaluate a view on a 20.000 documents database? In-Reply-To: <4aa4f4d60808010545u43845e9bjd788f6087b2bf423@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3718_19959564.1217599888576" References: <4aa4f4d60807311410m6077d984x83cb3b5d4e8c6f17@mail.gmail.com> <06C596D4-E5D1-4161-BFF1-D3A40FFB4627@gmail.com> <4aa4f4d60807311538h5a9c9d02k2dc507a0b566f34@mail.gmail.com> <3a344bc70808010037h2c3fb1b5raca06f634378b79@mail.gmail.com> <4aa4f4d60808010545u43845e9bjd788f6087b2bf423@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3718_19959564.1217599888576 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > > So, I am > just checking if the classe_id field starts with a certain string. Is regex > comparison a heavy operation in Javascript? I'm going go out on a limb and say it's *way* more heavyweight than a doc.classe_id.indexOf('...') == 0 which from the sounds of it would give you the same results. ------=_Part_3718_19959564.1217599888576--