Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 174D5D169 for ; Thu, 5 Jul 2012 13:17:55 +0000 (UTC) Received: (qmail 5986 invoked by uid 500); 5 Jul 2012 13:17:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5891 invoked by uid 500); 5 Jul 2012 13:17:50 -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 5856 invoked by uid 99); 5 Jul 2012 13:17:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2012 13:17:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon@cloudant.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2012 13:17:41 +0000 Received: by wgbfg15 with SMTP id fg15so6991525wgb.23 for ; Thu, 05 Jul 2012 06:17:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=rjtjxxO/nevivIa1lCeCrlkDbA3VR0KAndkboJ2o3as=; b=fo0pCW1nac2OKscgkdKIcUomAX59W2sdiNoc3mSaUDfoJygVjtf+Uo25kFsSg7aVPm E5oYizY5kegJlOf22mv87NZLZq12lL56SCdpO3Y5Vx1UeBps2GPamumivJxw3SFkeJ/k HhjnhAuMmHVp0l2nD+kR8vC7VwMLX1ssCoA30m2PmWdQ6Wn4X3+En5TVBrB9pj+l3jfA 6f5CWjhq7moebR8jDjg7yRcY5hN3ofgPCaxWRObbbyEGFGcbi3YKS7T/2wGNMfNsbXbp rB+tUtbiNpR5oqM1uiRn+pGPn0Byurh0pscPYsTD5H6AbUnkQIXVfKC9vK2F7G+XNEc8 pUlg== Received: by 10.216.200.201 with SMTP id z51mr8674890wen.0.1341494240949; Thu, 05 Jul 2012 06:17:20 -0700 (PDT) Received: from [192.168.1.73] (host86-160-152-81.range86-160.btcentralplus.com. [86.160.152.81]) by mx.google.com with ESMTPS id fo7sm42818705wib.9.2012.07.05.06.17.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jul 2012 06:17:20 -0700 (PDT) Date: Thu, 5 Jul 2012 14:17:16 +0100 From: Simon Metson To: user@couchdb.apache.org Message-ID: <83A62A28CDB34F748301B85894174107@cloudant.com> In-Reply-To: References: <4FF52444.4090904@openforce.com> Subject: Re: Cached temporary views X-Mailer: sparrow 1.6.1 (build 1081.52) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4ff593dc_bb13c1_92" X-Gm-Message-State: ALoCoQkEcowPpTz9KLM0ic2dzbY9SpCnLLCJGFf9LF48m/xtGIlF1bioYZce+TNtjIhRGS+9g+HM --4ff593dc_bb13c1_92 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, > e.g. upload the same view code to multiple design documents > > Should have been e.g. upload the same view code to multiple databases The view files are named as a hash of the view function, so if you have duplicate code you just serve the same file to both. Sorry about that, thanks Bob for nudging me. Simon On Thursday, 5 July 2012 at 11:25, Simon Metson wrote: > Hi, > I think you'd be better off making fresh views (e.g. upload the same view code to multiple design documents). The caching is a good thing (it saves you time and cpu!), I don't think it can be turned off. It's also not a realistic test to have it disabled, you're not going to run like that in production. You could rm the view file between tests, I suppose. > > A better test might be to have a view defined, insert N documents hit the view and time the response, add another N docs, time the view, repeat etc. That way you can work out how quickly your view builds for a given set of docs. There are some tools to generate fake data, which is handy for this kind of test. > Cheers > Simon > > On Thursday, 5 July 2012 at 06:21, Bernhard Schauer wrote: > > > Hello, > > > > I want to measure the performance of index creation (building up a new > > view) on my server. > > I'm interested in the effects of adding an extra CPU. > > > > My idea was to create a temporary view and and measure the response time > > on the client. > > But temporary views seem to be cached. When I request the same temporary > > view twice, the second request is much faster. > > > > Is there a way to prevent couchdb from caching temporary views? Or can I > > clear the cache somehow? > > > > Thanks Bernhard > > > > -- > > openForce Information Technology GesmbH > > Dresdner Str. 108 / 11 > > 1200 Wien > > > > Geschaeftsfuehrung: Otto Meinhart, Gerhard Hipfinger > > Firmenbuch: Handelsgericht Wien, Sitz Wien, FN 218366b > > > > http://openforce.com/ > --4ff593dc_bb13c1_92--