pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Joseph Bove <jbove@vetstar.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Inconsistent performance
Date: Mon, 15 Sep 2003 14:34:49 -0700 (PDT)
Message-ID: <20030915143308.S75006@megazone.bigpanda.com> (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, 15 Sep 2003, Joseph Bove wrote:

> I am working with a decent sized database on an extremely powerful machine.
> The specs follow:
>
> 	OS:			RedHat Linux 9.0
> 	PG Version		7.3
> 	Memory		1 gig
> 	CPU			Quad Processor - Unsure of exact CPUs
> 	Hard Drive		80 gigs
> 	Database Size		2 gigs
>
>
> As you can see the server is built for overkill.
>
> The problem that I see is as follows.
>
> 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.

Is it consistant for various values of "some value"?  If so, it's possible
that it's switching plans based on the apparent selectivity of the column
for that value.



view thread (16+ messages)  latest in thread

Message-ID: <20030915143308.S75006@megazone.bigpanda.com>
Permalink:  ../20030915143308.S75006@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20030915143308.S75006@megazone.bigpanda.com

 · 

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: sszabo@megazone.bigpanda.com, jbove@vetstar.com
  Subject: Re: Inconsistent performance
  In-Reply-To: <20030915143308.S75006@megazone.bigpanda.com>
  References: <5.1.0.14.2.20030915172334.00b1fe48@mail.vetstar.com> <20030915143308.S75006@megazone.bigpanda.com>

* 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