Re: table configuration tweak for performance gain.

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Harvey, Allan AC" <HarveyA(at)OneSteel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: table configuration tweak for performance gain.
Date: 2004-11-15 05:59:35
Message-ID: 20041115055935.GA66295@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 15, 2004 at 04:25:59PM +1100, Harvey, Allan AC wrote:

> The table in question has several thousand rows currently,
> planning several million, it has a date time stamp column.
> All selects will be on ranges of the date time column.
>
> I created an index on the dt column, ran ANALYSE then,
> EXPLAIN for some queries.
> The returned plan was always sequential search.
> The SELECT time also indicates sequential search.
>
> Is there anything I can do to improve SELECT performance
> on what is essentially an ordered table?

Could you post a query and the EXPLAIN ANALYZE output? We could
probably give better advice if we could see what's happening.

Have you experimented with lowering random_page_cost?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jamie Deppeler 2004-11-15 06:52:45 OID's
Previous Message Harvey, Allan AC 2004-11-15 05:25:59 table configuration tweak for performance gain.