Re: vacuum performance on insert

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: vacuum performance on insert
Дата
Msg-id 4C5AB5140200002500034276@gw.wicourts.gov
обсуждение исходный текст
Ответ на vacuum performance on insert  (Sean Chen <zyschen@gmail.com>)
Ответы Re: vacuum performance on insert  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Sean Chen <zyschen@gmail.com> wrote:

> 1, delete records ...
> 2, insert records ...
>
> if I add "vacuum analyze" in-between this two steps, will it help
> on the performance on the insert?

Assuming there are no long-running transactions which would still be
able to see the deleted rows, a VACUUM between those statements
would allow the INSERT to re-use the space previously occupied by
the deleted rows, rather than possibly needing to allocate new space
from the OS.

-Kevin

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

Предыдущее
От: Sean Chen
Дата:
Сообщение: vacuum performance on insert
Следующее
От: Tom Lane
Дата:
Сообщение: Re: vacuum performance on insert