Really slow even after vacuum

Поиск
Список
Период
Сортировка
Искать

Really slow even after vacuum

От:
Jeroen Baekelandt <jbaekelandt@kiala.com>
Дата:
Hi,

I must have missed something, because I get really slow performance from
PG 7.3.4-RH. This is my situation: I have a table (jms_messages), which
contains 500.000 records. select count(*) from jms_messages is
understandable quite slow. Then I delete all of the records and add 1000
new ones. I run vacuumdb on this database and run select count(*) from
jms_messages again. It takes 80 seconds!?! While before, with 1000
records, it took only a fraction of a second.

Thanks for any tips,

Jeroen Baekelandt

Re: Really slow even after vacuum

От:
Dennis Bjorklund <db@zigo.dhs.org>
Дата:
On Wed, 21 Jan 2004, Jeroen Baekelandt wrote:

> jms_messages again. It takes 80 seconds!?! While before, with 1000
> records, it took only a fraction of a second.

run: VACUUM FULL ANALYZE;

-- 
/Dennis Björklund

FAQ