Re: Long Running Update

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Long Running Update
Дата
Msg-id 4E0477F2020000250003EBCA@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Long Running Update  (Harry Mantheakis <harry.mantheakis@riskcontrollimited.com>)
Ответы Re: Long Running Update
Список pgsql-performance
Harry Mantheakis <harry.mantheakis@riskcontrollimited.com> wrote:

> I have stopped the all-in-one-go update from executing, and now I
> am executing a series of statements, each constrained to update no
> more than 100,000 records at a time.
>
> Interesting fact: updating 100,000 rows takes 5 seconds. Quick.

One last thing -- all these updates, included the aborted attempt at
a single-pass update, may cause significant bloat in both the heap
and the index(es).  I usually finish up with a CLUSTER on the table,
followed by a VACUUM ANALYZE on the table.

-Kevin

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

Предыдущее
От: Harry Mantheakis
Дата:
Сообщение: Re: Long Running Update
Следующее
От: Harry Mantheakis
Дата:
Сообщение: Re: Long Running Update