Re: Slow select, insert, update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow select, insert, update
Дата
Msg-id 181.1092161885@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Slow select, insert, update  (Paul Langard <pjl@intercellsolutions.com>)
Список pgsql-performance
Paul Langard <pjl@intercellsolutions.com> writes:
> select count(id) from project
> count
> 9106
> 1 row(s)
> Total runtime: 45,778.813 ms

Yipes.  The only explanation I can think of is tremendous table bloat.
What do you get from "vacuum verbose project" --- in particular, how
many pages in the table?

> ... the database is regularly vaccuumed.

Not regularly enough, perhaps ... or else you need to increase the free
space map size parameters.  In any case you'll probably need to do one
round of "vacuum full" to get this table back within bounds.

            regards, tom lane

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

Предыдущее
От: Bill Montgomery
Дата:
Сообщение: Re: Column order performance
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Column order performance