Skip site navigation (1) Skip section navigation (2)

Really slow even after vacuum

From: Jeroen Baekelandt <jbaekelandt(at)kiala(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Really slow even after vacuum
Date: 2004-01-21 09:34:10
Message-ID: 1074677650.2060.26.camel@jbaekelandt.dev.kiala.com (view raw or flat)
Thread:
Lists: pgsql-performance
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


Responses

pgsql-performance by date

Next:From: Thierry MissimillyDate: 2004-01-21 09:59:46
Subject: Re: PostgreSQL vs. Oracle disk space usage
Previous:From: Christopher Kings-LynneDate: 2004-01-21 00:24:55
Subject: Re: database profiling

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group