Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 89143 invoked from network); 21 Jun 2008 12:39:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jun 2008 12:39:53 -0000 Received: (qmail 91138 invoked by uid 500); 21 Jun 2008 12:39:54 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 91106 invoked by uid 500); 21 Jun 2008 12:39:54 -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 91095 invoked by uid 99); 21 Jun 2008 12:39:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2008 05:39:54 -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 damienkatz@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jun 2008 12:39:02 +0000 Received: by wr-out-0506.google.com with SMTP id c53so1309292wra.20 for ; Sat, 21 Jun 2008 05:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=EFhjxvyfxF8em4rzjB195HD38v5MSTNf+4nG/CkGP2c=; b=QuggJkZmChwdekYAjG5+61cz6rOzjEypxSyA94SvSL0YIph/HFWto6Z6mOFO7b4xs6 rPTr8iEN46d72EV3SyoncZJW/TJQl8/PHBJvCrJMIPeOhP9rvxEowUEHlx77343BzenQ Nt94dcR5gcTlq9u0nRn/3qCYepZnERttJkoGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=EK8NkDN4hHEuwkW3VkDqhpAbSaHmORie2lz0GLxTHMb6s8UMBNAgx5+XmDnRdenMCH NRykKfzUm7eqleyyU8Ni68IhIRfVFYVedXbG1rUkERLtnWio9/xvUDzmixyv02qEm7Qi Zj+/rzqXPD2MJ6sWI0Gwd1gJC5lx5g8Jnimeg= Received: by 10.90.82.8 with SMTP id f8mr6370415agb.2.1214051960395; Sat, 21 Jun 2008 05:39:20 -0700 (PDT) Received: from ?192.168.10.17? ( [71.11.83.105]) by mx.google.com with ESMTPS id 23sm2313756hsd.10.2008.06.21.05.39.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Jun 2008 05:39:19 -0700 (PDT) Message-Id: From: Damien Katz To: couchdb-user@incubator.apache.org In-Reply-To: <888cd9180806201351u1373f465r606d9c37d1903a19@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: view index build time Date: Sat, 21 Jun 2008 08:39:15 -0400 References: <888cd9180806201345k423a4dc8j64a881f351bd60bd@mail.gmail.com> <888cd9180806201351u1373f465r606d9c37d1903a19@mail.gmail.com> X-Mailer: Apple Mail (2.924) X-Virus-Checked: Checked by ClamAV on apache.org Part of the problem is you are storing copies of the documents into the btree. If the documents are big, it takes longer to compute on them, and if the results (emit(...)) are big or numerous, then you'll be spending most of your time in I/O. My advice is to not emit the document into the view, and if you can, get the documents smaller in general. If the data can stored as an binary attachment, then that too will give you a performance improvement. -Damien On Jun 20, 2008, at 4:51 PM, Brad King wrote: > Thanks, yes its currently at 357M and growing! > > On Fri, Jun 20, 2008 at 4:49 PM, Chris Anderson > wrote: >> Brad, >> >> You can look at >> >> ls -lha /usr/local/var/lib/couchdb/.my-dbname_design/ >> >> to see the view size growing... >> >> It won't tell you when it's done but it will give you hope that the >> progress is happening. >> >> Chris >> >> On Fri, Jun 20, 2008 at 1:45 PM, Brad King wrote: >>> I have about 350K documents in a database. typically around 5K >>> each. I >>> created and saved a view which simply looks at one field in the >>> document. I called the view for the first time with a key that >>> should >>> only match one document, and its been awaiting a response for >>> about 45 >>> minutes now. >>> >>> { >>> "sku": { >>> "map": "function(doc) { emit(doc.entityobject.SKU, doc); }" >>> } >>> } >>> >>> Is this typical, or is there some optimizing to be done on either my >>> view or the server? I'm also running on a VM so this may have some >>> effects, but smaller databases seem to be performing pretty well. >>> Insert times to set this up were actually really good I thought, at >>> 4000 to 5000 documents per minute running from my laptop. >>> >> >> >> >> -- >> Chris Anderson >> http://jchris.mfdz.com >>