Re: - Mailing list pgsql-performance

From Jeff Cole
Subject Re:
Date
Msg-id 3FB60C33-F8C7-4E6C-A02C-1D15605C4E96@gmail.com
Whole thread Raw
In response to Re:  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re:
List pgsql-performance
On Mar 6, 2007, at 11:40 AM, Tom Lane wrote:

> the *actual* average number of rows scanned is 3773.  I'm not sure why
> this should be --- is it possible that the distribution of keys in
> symptom_reports is wildly uneven?  This could happen if all of the
> physically earlier rows in symptom_reports contain the same small set
> of symptom_ids, but the stats don't seem to indicate such a skew.

Hi Tom, you are correct, the distribution is uneven... In the 13k
symptom_reports rows, there are 105 distinct symptom_ids.   But the
first 8k symptom_reports rows only have 10 distinct symptom_ids.
Could this cause the problem and would there be anything I could do
to address it?

Thanks for all your help, I appreciate it.

-Jeff

pgsql-performance by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Automated test-suite for Postgres
Next
From: Zoolin Lin
Date:
Subject: Any advantage to integer vs stored date w. timestamp