pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: valgog <valgog@gmail.com>
To: runic <runic@gmx.de
To: pgsql-performance@postgresql.org
Subject: Re: select count(*) performance
Date: Mon, 13 Aug 2007 09:07:03 -0500
Message-ID: <46C01F36.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <1187005089.011403.303320@w3g2000hsg.googlegroups.com>
References: <1186578085.034463.116030@q75g2000hsh.googlegroups.com>
	<5i64cvF3mnmcsU1@mid.individual.net>
	<1187005089.011403.303320@w3g2000hsg.googlegroups.com>

>>> valgog <valgog@gmail.com> 08/13/07 6:38 AM >>> 
On Aug 11, 5:54 pm, Detlef Rudolph <ru...@gmx.de> wrote:
>
> I've tried the VACUUM ANALYSE, that doesn't help
> much, but VACUUM FULL improves Performance down
> from about 40 secs to 8.
 
Det,
 
I don't think anyone meant to suggest that VACUUM ANALYZE would improve the
count speed on a table which had become bloated, but its routine use would
PREVENT a table from becoming bloated.  Once bloat occurs, you need more
agressive maintenance, like VACUUM FULL or CLUSTER.
 
VACUUM FULL tends to cause index bloat, so you will probably see performance
issues in other queries at the moment.  You will probably need to REINDEX
the table or use CLUSTER to clean that up.
 
-Kevin
 





view thread (9+ messages)  latest in thread

Message-ID: <46C01F36.EE98.0025.0@wicourts.gov>
Permalink:  ../46C01F36.EE98.0025.0@wicourts.gov/
Also on:    postgresql.org/message-id/46C01F36.EE98.0025.0@wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, valgog@gmail.com, runic <runic@gmx.de
  Subject: Re: select count(*) performance
  In-Reply-To: <46C01F36.EE98.0025.0@wicourts.gov>

* 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