Re: slow result

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: slow result
Дата
Msg-id 20070123175951.GC20870@wolff.to
обсуждение исходный текст
Ответ на slow result  (Laurent Manchon <lmanchon@univ-montp2.fr>)
Ответы Re: slow result  ("Shoaib Mir" <shoaibmir@gmail.com>)
Список pgsql-performance
On Tue, Jan 23, 2007 at 11:34:52 +0100,
  Laurent Manchon <lmanchon@univ-montp2.fr> wrote:
> Hi,
>
> 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;
>
> PostgreSQL return result in 28 sec every time.
> although MS-SQL return result in 0.02 sec every time.

Besides the other advice mentioned in this thread, check that you don't
have a lot of dead tuples in that table. 28 seconds seems a bit high
for even a sequential scan of 800000 tuples unless they are pretty large.

В списке pgsql-performance по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: extract(field from timestamp) vs date dimension
Следующее
От: "Dave Dutcher"
Дата:
Сообщение: Bad Row Count Estimate on View with 8.2