pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex <alex@meerkatsoft.com>
To: pgsql-general@postgresql.org
Subject: VACUUM Question
Date: Thu, 19 Feb 2004 15:51:57 +0900
Message-ID: <40345D0D.9060103@meerkatsoft.com> (raw)

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









view thread (33+ messages)  latest in thread

Message-ID: <40345D0D.9060103@meerkatsoft.com>
Permalink:  ../40345D0D.9060103@meerkatsoft.com/
Also on:    postgresql.org/message-id/40345D0D.9060103@meerkatsoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alex@meerkatsoft.com
  Subject: Re: VACUUM Question
  In-Reply-To: <40345D0D.9060103@meerkatsoft.com>
  References: <40345D0D.9060103@meerkatsoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox