Re: Database Optimization and Peformance

From: Chris Browne <cbbrowne(at)acm(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Database Optimization and Peformance
Date: 2006-08-30 21:29:25
Message-ID: 60d5ahzzd6.fsf@dba2.int.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

joe(dot)mcclintock(at)antics(dot)com (Joe McClintock) writes:
> My concern is this, doing a backup and restore does not seem an
> appropriate way manage database fragmentation and performance. The
> documentation I have read indicates that vacuum, analyze reindex are
> the tools to use to de-fragment and optimize the database. In my
> case they did not work and reindexing made query performance
> slightly worse. Am I missing something? As the database grows, will
> I need to essentially rebuild the db on a regular basis?

It oughtn't be necessary.

It seems quite plausible that there are a few tables that are not
being vacuumed nearly often enough.

If you have tables where large portions are modified
(updated/deleted), then you need to run VACUUM quite frequently,
otherwise such tables will be overrun with dead space.

We have tables that we run VACUUM on every five minutes because they
change really heavily. (200-300 tuples, where we do an update to a
tuple every time a customer is billed.)
--
"cbbrowne","@","ntlug.org"
http://cbbrowne.com/info/finances.html
Why does sour cream have an expiration date?

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Roman Neuhauser 2006-08-30 21:56:50 Re: Fwd: How to convert a string to bytea?
Previous Message Chris Hoover 2006-08-30 19:12:52 Re: Why so long between archive calls?