Re: Large Table With Only a Few Rows

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Large Table With Only a Few Rows
Дата
Msg-id 20060301065556.GA1137@wolff.to
обсуждение исходный текст
Ответ на Large Table With Only a Few Rows  ("Nik" <XLPizza@gmail.com>)
Список pgsql-performance
On Mon, Feb 27, 2006 at 06:48:02 -0800,
  Nik <XLPizza@gmail.com> wrote:
> I have a table that has only a few records in it at the time, and they
> get deleted every few seconds and new records are inserted. Table never
> has more than 5-10 records in it.
>
> However, I noticed a deteriorating performance in deletes and inserts
> on it. So I performed vacuum analyze on it three times (twice in a row,
> and once two days later). In the statistics it says that the table size
> is 863Mb, toast table size is 246Mb, and indexes size is 134Mb, even
> though the table has only 5-10 rows in it it. I was wondering how can I
> reclaim all this space and improve the performance?

You can use VACUUM FULL to recover the space. You should be running normal
VACUUMs on that table every minute or two, not once a day.

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

Предыдущее
От: "Jeevanandam, Kathirvel (IE10)"
Дата:
Сообщение: Re: triggers, performance Was: Re: [GENERAL] rotate records
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: nested query on last n rows of huge table