pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Joseph Bove <jbove@vetstar.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Inconsistent performance
Date: Mon, 15 Sep 2003 16:42:28 -0500
Message-ID: <20030915214228.GA17642@wolff.to> (raw)
In-Reply-To: <5.1.0.14.2.20030915172334.00b1fe48@mail.vetstar.com>
References: <5.1.0.14.2.20030915172334.00b1fe48@mail.vetstar.com>

On Mon, Sep 15, 2003 at 17:34:12 -0400,
  Joseph Bove <jbove@vetstar.com> wrote:
> 
> I do a rather simple query: select count (*) from large-table where column 
> = some value;
> 
> About 80% of the time, the response time is sub-second. However, at 10% of 
> the time, the response time is 5 - 10 seconds.
> 
> This is nothing readily apparent at the system level that comes close to 
> explaining the performance hits. CPU and memory usage (as measured by top) 
> appear to be fine.
> 
> Although there are certain tuning issues within the database itself, no 
> documentation I have seen seems to indicate that tuning issues would lead 
> to such inconsistent response time.

Looking at the output from explain analyze for the query would be useful.
It may be that there are a lot of rows that have the value in the problem
queries.



view thread (16+ messages)  latest in thread

Message-ID: <20030915214228.GA17642@wolff.to>
Permalink:  ../20030915214228.GA17642@wolff.to/
Also on:    postgresql.org/message-id/20030915214228.GA17642@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: bruno@wolff.to, jbove@vetstar.com
  Subject: Re: Inconsistent performance
  In-Reply-To: <20030915214228.GA17642@wolff.to>
  References: <5.1.0.14.2.20030915172334.00b1fe48@mail.vetstar.com> <20030915214228.GA17642@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox