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 56ABDC66A for ; Thu, 20 Jun 2013 14:00:04 +0000 (UTC) Received: (qmail 47173 invoked by uid 500); 20 Jun 2013 14:00:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 46870 invoked by uid 500); 20 Jun 2013 13:59:57 -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 46842 invoked by uid 99); 20 Jun 2013 13:59:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 13:59:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.128.171 as permitted sender) Received: from [209.85.128.171] (HELO mail-ve0-f171.google.com) (209.85.128.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 13:59:48 +0000 Received: by mail-ve0-f171.google.com with SMTP id b10so5098879vea.16 for ; Thu, 20 Jun 2013 06:59:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=xJ+ZD6OqVXOqiK+TfHJsDDC4QieYgRYTGRaSBDoCXVY=; b=EwIcIJCy8McvDPbMiky/Cr9kyNT49xwlYpGK7LNVS5keagJEyiS0EX2e7uJInL8mJo EpTS0O4T+WtWgn7b40RRCilXEU3+hcvok3Zo8ZwJQZ3qLhkcCDHnNcn0jFStjOR8RjLQ hlPkVt3Gj4xnc1hi+z0lfCx54Ul7S1px4lFEykQX9OSlYtoIaOi/V+683GKTTTL72Q3q s9zr+c7vRnLIAwlcBz1Cfu4rohuKRKUBthrATa1MLfvMChK4ThoSnfHiRmnruvQha4Y5 WiCn5dFNj2j0ZVeR5JTtPf0UYqPNkU45Q/zr5V4caP5eU4qP6JTrljhrbLi3nTCB+EIM g7Ow== X-Received: by 10.221.9.68 with SMTP id ov4mr2797217vcb.6.1371736767617; Thu, 20 Jun 2013 06:59:27 -0700 (PDT) Received: from [172.16.9.233] (50-195-18-145-static.hfc.comcastbusiness.net. [50.195.18.145]) by mx.google.com with ESMTPSA id l5sm449665vev.1.2013.06.20.06.59.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Jun 2013 06:59:26 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Large views and concurrent access From: Adam Kocoloski In-Reply-To: Date: Thu, 20 Jun 2013 09:59:28 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <65EE8888-2667-4B3E-8C4C-293E336C4CEF@apache.org> References: <7910AC7E-353A-4D4D-85E1-93753EF5CB3B@couchbase.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1508) X-Virus-Checked: Checked by ClamAV on apache.org The file descriptor process for the .view file is shared by all clients = querying the view. I suppose you might be at the limit of what it can = deliver from disk, but it's hard to say for certain. The Fd does not do = any caching or deduplication of pread requests. I can't think of anything other shared resource that might degrade in = this fashion with a large view respoonse. Adam On Jun 15, 2013, at 9:00 AM, mangvlad wrote: > I think my problem is not with the size or seep of parsing. > When I am making a single request, getting the response in 1 sec is = ok. > Improving this speed would be a bonus... >=20 > My problem is that when I get more than one user, the time is rapidly = increasing > with every new concurrent request... >=20 > Breaking views into smaller multiple views will be pretty difficult... > What is it that is shared between requests inside couchdb that is = causing this? >=20