Re: When do I Vacuum ?

From: "Carsten Gerhardt" <carsten(dot)gerhardt(at)ppi(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: When do I Vacuum ?
Date: 2001-12-03 17:17:11
Message-ID: 3c0bb397$0$188$4d4ebb8e@read.news.de.uu.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Steve,

"Steve Brett" <steve(dot)brett(at)e-mis(dot)com> wrote
> hi,
>
> I've got a DB driven web application which currently has approx 298 inserts
> per day and 540 edits/deletes.
>
> This figure will change daily and currently i have a cron job set up to
> vacuum the database every hour during 'work time':
>
> 0 7-19/1,23 * * * /usr/local/pgsql/bin/vacuumdb -z -d edb
> 30 7-19/4,23 * * * /backup/dumpit

I do the same on my DB.

> I've also started reading Bruce's book (and what a fine book it is ... :-)
> and noticed that he suggests vacuuming once a day when the db is quiet.
>
> Would this be sufficient ? The database drives a web based
> calendar/appointment booking/reporting system i've written in php and is
> used extensively by 3 departments and has approx 200 people log in each day.
>
> Needless to say speed it paramount but I've got a sneaky feeling I might be
> vacuuming too often ....

I didn't read the book, but I also read that one vacuum per day would by
enough. But my DB runs on a P100 with 64MB ram :-( after 20 to 30
inserts it seems to slow down, so I vacuum once an houre (at main working time)
and now I've less problems 8)

HTH
Carsten

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Reath 2001-12-03 17:26:37 Scalable psql clusters
Previous Message Yuri A. Kabaenkov 2001-12-03 17:09:53 Re: interval