Re: slow result - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: slow result
Date
Msg-id 20070123105541.GA13367@uio.no
Whole thread Raw
In response to slow result  (Laurent Manchon <lmanchon@univ-montp2.fr>)
Responses Re: slow result
List pgsql-performance
On Tue, Jan 23, 2007 at 11:34:52AM +0100, Laurent Manchon wrote:
> I have a slow response of my PostgreSQL database 7.4 using this query below
> on a table with 800000 rows:
>
> select count(*)from tbl;

Contrary to your expectations, this is _not_ a query you'd expect to be fast
in Postgres. Try real queries from your application instead -- most likely,
you'll find them to be much master. (If not, come back with the query, the
schema and the EXPLAIN ANALYZE output of your query, and you'll usually get
help nailing down the issues. :-) )

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: slow result
Next
From: "Steinar H. Gunderson"
Date:
Subject: Re: slow result