pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Benne <thing@m-bass.com>
To: pgsql-performance@postgresql.org
Subject: When to do a vacuum for highly active table
Date: Tue, 30 Aug 2005 14:13:55 -0700 (PDT)
Message-ID: <20050830211356.48138.qmail@web31606.mail.mud.yahoo.com> (raw)

We have a highly active table that has virtually all
entries updated every 5 minutes.  Typical size of the
table is 50,000 entries, and entries have grown fat.

We are currently vaccuming hourly, and towards the end
of the hour we are seeing degradation, when compared
to the top of the hour.

Vaccum is slowly killing our system, as it is starting
to take up to 10 minutes, and load at the time of
vacuum is 6+ on a Linux box.  During the vacuum,
overall system is goin unresponsive, then comes back
once vacuum completes.

If we run vacuum less frequently, degradation
continues to the point that we can't keep up with the
throughput, plus vacuum takes longer anyway.

Becoming quite a pickle:-)

We are thinking of splitting the table in two: the
part the updates often, and the part the updates
infrequently as we suspect that record size impacts
vacuum.

Any ideas?


Thanks,
Mark

-----------------



view thread (7+ messages)  latest in thread

Message-ID: <20050830211356.48138.qmail@web31606.mail.mud.yahoo.com>
Permalink:  ../20050830211356.48138.qmail@web31606.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/20050830211356.48138.qmail@web31606.mail.mud.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: thing@m-bass.com
  Subject: Re: When to do a vacuum for highly active table
  In-Reply-To: <20050830211356.48138.qmail@web31606.mail.mud.yahoo.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