Re: slow query - Mailing list pgsql-sql

From Andrew Sullivan
Subject Re: slow query
Date
Msg-id 20070405133316.GC6464@phlogiston.dyndns.org
Whole thread Raw
In response to Re: slow query  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Thu, Apr 05, 2007 at 01:47:03AM -0400, Tom Lane wrote:
> [ shrug... ]  If the damage is already done, lazy VACUUM won't fix it.
> 

Also, if there are enough open transactions at any one time and
sufficient churn in the table, lazy VACUUM may not be able to keep
up.  (We had that experience with a table that was updated _very
very_ often.  The answer turned out to be to update less often. 
Aggregating queries that could use an index over a large number of
"expired" rows worked better than seqscans over large numbers of dead
tuples.)

A
-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Information security isn't a technological problem.  It's an economics
problem.    --Bruce Schneier


pgsql-sql by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: Insert only if not found
Next
From:
Date:
Subject: LOG: unexpected EOF on client connection