Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 28635 invoked from network); 7 Jan 2009 23:47:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2009 23:47:58 -0000 Received: (qmail 3966 invoked by uid 500); 7 Jan 2009 23:47:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 3925 invoked by uid 500); 7 Jan 2009 23:47:52 -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 3914 invoked by uid 99); 7 Jan 2009 23:47:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 15:47:52 -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 vanpelt@gmail.com designates 209.85.198.239 as permitted sender) Received: from [209.85.198.239] (HELO rv-out-0506.google.com) (209.85.198.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2009 23:47:44 +0000 Received: by rv-out-0506.google.com with SMTP id g37so8424187rvb.35 for ; Wed, 07 Jan 2009 15:47:23 -0800 (PST) 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=ZgO8l23Qz5sHu/fq00LgSTKPlno8qZ3AT6YtjldLkcI=; b=Mll3P4l3tCbwi58S8vBGzlcRJ1bjI6s1H0U4vR2uNAIGobHeHeCRaBkfoKiypXF/QV 9xc8nwFEGqGriZjJ13GrpMsQ5zoo6NTmGIMxmOIRs/IlAHY+m7N8DHZ6jGl6wVx7xxh2 17x4h+Srb83tsOuDfuAhVLlAURSAureHZ+bAU= 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=wk7TYZtY4DKPRjeF8Qa/zlfFsIvFtc5lduJRifjXlFXiDnA2F4KCTXoAWz+EjYuesW 8avzyWdDlF0g6KJC3kL2Uzyyz+h1h2oqDk/9xeQHnmPNjr4rgcOdB2gr0989SWo0021+ 8LEk9do8iKptFIqSxYaC2kETtaBpshuU5UAuw= Received: by 10.141.4.3 with SMTP id g3mr11762502rvi.124.1231372043793; Wed, 07 Jan 2009 15:47:23 -0800 (PST) Received: by 10.140.134.2 with HTTP; Wed, 7 Jan 2009 15:47:23 -0800 (PST) Message-ID: <9d5c45d10901071547s169d479akdc26c0f9fd6fc86f@mail.gmail.com> Date: Wed, 7 Jan 2009 15:47:23 -0800 From: "Chris Van Pelt" To: user@couchdb.apache.org Subject: Re: Slooooow views In-Reply-To: <84F9A5A5-4EC3-489C-89A3-28DAE3B34FC9@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9d5c45d10901071449m23f634c4v4efc6af6b8d8f3c9@mail.gmail.com> <84F9A5A5-4EC3-489C-89A3-28DAE3B34FC9@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org I was using R11B... I'm installing R12B-5 now. Should I expect an amazing performance increase? Filled with anticipation :) On Wed, Jan 7, 2009 at 3:37 PM, Jan Lehnardt wrote: > Can you make sure you are running on Erlang R12B-4 or newer? > > Cheers > Jan > -- > On 7 Jan 2009, at 23:49, Chris Van Pelt wrote: > >> I'm pretty new to couch, and I'm wondering if there is a way to >> improve the performance of my views. My views are very slow during >> generation, but also during simple queries. >> >> A request to one of my views after it is fully updated takes 2-4 >> seconds. The view is rather complex, using compound keys and an >> involved reduce step, but I assumed that didn't matter once the update >> step was complete. I have 10000 documents in my DB. >> >> The update step, after adding 11 documents, takes 23 seconds. >> >> Because I have a web server talking directly to couch, I can't afford >> requests taking longer than a few seconds. Ideally my requests would >> be in the tenths of seconds. How do people deal with this in the real >> world? I understand I can fire off view generation manually, but than >> all other requests hang while the view is being generated. >> >> I've also been looking for a way to edit my views without taking down >> my entire site for the 15 minutes it takes to regenerate the entire >> index. It seems plausible to keep the old index around for queries >> while the new index is being created, no? >> >> Chris >> > >