Thread: Really slow even after vacuum

Really slow even after vacuum

From
Jeroen Baekelandt
Date:
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

From
Dennis Bjorklund
Date:
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