Re: VACUUM and 24/7 database operation

From: Tiger Technologies <lists(at)tigertech(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: VACUUM and 24/7 database operation
Date: 2001-01-24 01:13:57
Message-ID: 20010124011357.B05F3190D7@ns2.tigertech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

At 1/23/01 4:20 PM, Alfred Perlstein wrote:

>* Steve Wolfe <steve(at)iboats(dot)com> [010123 13:11] wrote:
>> Well, here's what it comes down to: Do you want updates to happen
>> quickly, and vacuum when load is low, or do you want updates to be slow all
>> the time? I suppose that there are some sites that can't find two minutes
>> per day when updates will block (not selects), but I imagine they're very
>> few.
>
>There are some sites where going for more than an hour without a
>VACUUM makes response times unnaceptable, and each vacuum can take
>20 minutes a run.

In addition, the suggestion that vacuum isn't a problem because it only
takes two minutes is misleading.

Sure, it's only 2 minutes out of 24 hours. However, any given visitor
isn't at my site for 24 hours. If she arrives just as I'm starting the
vacuum, and it takes her less than two minutes to give up and go
somewhere else, the site was unavailable 100% of the time as far as she's
concerned.

If your site is down two minutes a day, and you have 14,000 unique
visitors a week, each of whom requires a database update, that's 20
people a week for whom the site isn't working when they arrive.

--
Robert L Mathews, Tiger Technologies

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Wall 2001-01-24 01:27:22 Re: Backing up large objects
Previous Message Tom Lane 2001-01-23 23:24:20 Re: Backing up large objects