Re: PostgreSQL slow after VACUUM - Mailing list pgsql-general

From gnari
Subject Re: PostgreSQL slow after VACUUM
Date
Msg-id 001901c4d391$5f7f8d90$0100000a@wp2000
Whole thread Raw
In response to PostgreSQL slow after VACUUM  (Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>)
List pgsql-general
From: "Nikola Milutinovic" <Nikola.Milutinovic@ev.co.yu>


> There is one DB and one DB user. The DB is cleared and loaded with the
> data of same volume each month (monthly report). The volume is not small
> and it usually takes 3 hours to load. Loading is done with SQL files
> which use transactions, 10,000 SQL statements per transaction.
>
> A couple of days ago, disk became full, since we were not doing VACUUM
> on the DB at all. So, I deleted all records from the 3 tables the DB has
> and performed "VACUUM FULL ANALYZE". This reclaimed the space.
>
> My problem is that the load is now taking (to my estimate) 20 times more!

it sounds from your description, that you are not analyzing the table
after the batch loads.
a analyze on an empty table effectively destroys all statistics.

gnari




pgsql-general by date:

Previous
From: Daniel Martini
Date:
Subject: Re: rules
Next
From: Jerome Macaranas
Date:
Subject: Re: [PERFORM] HELP speed up my Postgres