Re: Update table performance

Поиск
Список
Период
Сортировка
От Piotr Kołaczkowski
Тема Re: Update table performance
Дата
Msg-id 200708071544.17399.P.Kolaczkowski@elka.pw.edu.pl
обсуждение исходный текст
Ответ на Update table performance  (Mark Makarowsky <bedrockconstruction@yahoo.com>)
Список pgsql-performance
Hi,

update valley set test='this is a test'

Such query updates ALL of your records in the table.
5 million records * 47 fields - that can be several gigabytes of data.
The system has to scan that gigabytes to change every record. This is a huge
task. Try vacuuming and see if it helps. It can help a lot, if you perform
such 'whole table updates' often.

Best regards,
Piotr Kolaczkowski

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

Предыдущее
От: runic
Дата:
Сообщение: select count(*) performance
Следующее
От: Enrico Weigelt
Дата:
Сообщение: Implementing an regex filter