Re: slow result

Поиск
Список
Период
Сортировка
От Steinar H. Gunderson
Тема Re: slow result
Дата
Msg-id 20070123105541.GA13367@uio.no
обсуждение исходный текст
Ответ на slow result  (Laurent Manchon <lmanchon@univ-montp2.fr>)
Ответы Re: slow result  ("Steinar H. Gunderson" <sgunderson@bigfoot.com>)
Список 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 по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: slow result
Следующее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: slow result