Re: vacuum performance on insert

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

But on the other side of the coin, the ANALYZE step is probably not very
helpful there.  Better to do that after you've loaded the new data.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: vacuum performance on insert
Следующее
От: "Kenneth Cox"
Дата:
Сообщение: Advice configuring ServeRAID 8k for performance