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 34D50D2D1 for ; Mon, 11 Mar 2013 21:20:57 +0000 (UTC) Received: (qmail 58097 invoked by uid 500); 11 Mar 2013 21:20:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58059 invoked by uid 500); 11 Mar 2013 21:20:55 -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 58050 invoked by uid 99); 11 Mar 2013 21:20:55 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 21:20:55 +0000 Received: from localhost (HELO mail-la0-f51.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 21:20:55 +0000 Received: by mail-la0-f51.google.com with SMTP id fo13so4492381lab.10 for ; Mon, 11 Mar 2013 14:20:53 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.132.138 with SMTP id ou10mr11683738lab.56.1363036853251; Mon, 11 Mar 2013 14:20:53 -0700 (PDT) Received: by 10.112.25.201 with HTTP; Mon, 11 Mar 2013 14:20:53 -0700 (PDT) In-Reply-To: <60C7D1C6-DE78-4798-9E8F-AB03E2F25C7D@poplatek.fi> References: <265B0514-CB04-4C5A-8824-77B3008F4D47@poplatek.fi> <60C7D1C6-DE78-4798-9E8F-AB03E2F25C7D@poplatek.fi> Date: Mon, 11 Mar 2013 16:20:53 -0500 Message-ID: Subject: Re: Very slow queries to view in design doc From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Can you access /_log on the server? might have information. Does the custom reduce function actually reduce (that is, return a much smaller value than the input 'values' array)? B. On 11 March 2013 03:27, Sami Sierla wrote: > Hi, > > There is custom reduce function in this view but result is same even if r= educe=3Dfalse. Could this have something to do with running out of file des= criptors (I unfortunately don't have sufficient user rights to check this o= n server). Issue began after we added two databases (unrelated to this view= ) to CouchDB (both have continuous replication to standby server). > > Best, > Sami > > On Mar 8, 2013, at 4:20 PM, Robert Newson wrote: > >> Do you have a custom reduce function? Are the keys/values in that view >> very large? >> >> On 8 March 2013 08:18, Sami Sierla wrote: >>> Hi, >>> >>> We are having odd issue with CouchDB 1.2.0 view queries - queries to on= e particular view are very slow (tens of seconds with limit=3D1) but querie= s to other views in the same design doc perform as they should. Issue goes = away if we restart CouchDB but comes back after few hours. Views are period= ically refreshed so there are no indexing blocking the query. The setup we = have consists of about ten CouchDB databases on active db server (RHEL 5) a= nd second standby server with continuous CouchDB pull replication. Same vie= w query works fine on the standby server that has no other processes runnin= g. >>> >>> Any ideas what could cause this? >>> >>> Best, >>> Sami Sierla >