| From: | Alex <alex(at)meerkatsoft(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | VACUUM Question |
| Date: | 2004-02-19 06:51:57 |
| Message-ID: | 40345D0D.9060103@meerkatsoft.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
just a few questions on the Vaccum
I run a vacuum analyze on the database every night as part of a
maintenance job.
During the day I have a job that loads 30-70,000 records into two tables
(each 30-70k).
This job runs 2-3 times a day; the first time mainly inserts, the 2nd,
3rd time mostly updates.
Both tables have in the area of 1-3Mio records
How reasonable is it to run a Vacuum Analyze before and after the
insert/update of the data.
Also, I noticed that i get quite some performance improvement if I run a
count(*) on the two tables before the insert. Any reasons for that?
One more question; on one server the Vacuum Analyze before the insert
takes approx. 2min after that the same command takes 15min.
I run PG7.3.4
Thanks for any help
Alex
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Uwe C. Schroeder | 2004-02-19 07:55:49 | Re: Big Tables vs. many Tables vs. many Databases |
| Previous Message | Tom Lane | 2004-02-19 06:34:46 | Re: Grant / Revoke functionality |