From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: Slow query performance on large table
Date: Tue, 4 Mar 2003 10:15:29 -0500
Message-ID: <20030304101529.D32416@mail.libertyrms.com> (raw)
In-Reply-To: <000001c2e25c$ad506170$0c64a8c0@paulspc>
References: <000001c2e25c$ad506170$0c64a8c0@paulspc>
On Tue, Mar 04, 2003 at 02:45:18PM -0000, Paul McKay wrote:
>
> Select time,value
>
> >From measurement
>
> Where assessment = ?
>
> And time between ? and ?
>
Please run this with EXPLAIN ANALYSE with values that slow the query
down. By bet is that you have an index which needs wider statistics
setting on the column to be useful, but without the output from
EXAPLIN ANALYSE it'll be hard to tell.
A
--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
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: andrew@libertyrms.info
Subject: Re: Slow query performance on large table
In-Reply-To: <20030304101529.D32416@mail.libertyrms.com>
References: <000001c2e25c$ad506170$0c64a8c0@paulspc> <20030304101529.D32416@mail.libertyrms.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