Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aTlf1-0000xr-1n for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Feb 2016 07:27:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aTlez-0004AC-Rr for pgsql-jdbc@arkaria.postgresql.org; Thu, 11 Feb 2016 07:27:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aTleV-0003cE-Bq for pgsql-jdbc@postgresql.org; Thu, 11 Feb 2016 07:26:59 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aTleS-0004B4-Vp for pgsql-jdbc@postgresql.org; Thu, 11 Feb 2016 07:26:58 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u1B7Qm701148 for ; Wed, 10 Feb 2016 23:26:48 -0800 Subject: Re: System Query hit to Database To: pgsql-jdbc@postgresql.org References: From: John R Pierce Message-ID: <56BC37B8.9050508@hogranch.com> Date: Wed, 10 Feb 2016 23:26:48 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.1 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 2/10/2016 9:02 PM, dhaval jaiswal wrote: > I am getting lot of following queries on my Database. I need your > help to stop hitting this kind of queries to database. I ran that query on a pg server I manage and it took 2.3 milliseconds. on another instance on the same server, it took 2.00 ms. you'd have to do that 400-500 times a second continuously to use up one cpu core. ooh, on a couple older servers it took 4.4ms and 5.0ms, so 200/s. I'm just saying... If 'lot of queries' means a dozen per second continuously, thats not much performance wise. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc