| From: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
|---|---|
| To: | Joseph Bove <jbove(at)vetstar(dot)com> |
| Cc: | pgsql-performance(at)postgresql(dot)org |
| Subject: | Re: Inconsistent performance |
| Date: | 2003-09-15 21:34:49 |
| Message-ID: | 20030915143308.S75006@megazone.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruno Wolff III | 2003-09-15 21:42:28 | Re: Inconsistent performance |
| Previous Message | Joseph Bove | 2003-09-15 21:34:12 | Inconsistent performance |