Re: select count(*) performance

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Detlef Rudolph" <runic(at)gmx(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: select count(*) performance
Date: 2007-08-18 01:14:01
Message-ID: dcc563d10708171814q64ff79fdx5bd32477f81a1157@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 8/11/07, Detlef Rudolph <runic(at)gmx(dot)de> wrote:
> Hello Group,
>
> I've tried the VACUUM ANALYSE, that doesn't help
> much, but VACUUM FULL improves Performance down
> from about 40 secs to 8.

If vacuum full fixes a performance problem, then you have a regular
vacuum problem of some sort.

Make sure regular vacuum runs often enough and make sure your fsm
settings are high enough to allow it to reclaim all deleted tuples
when it does run.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2007-08-18 03:03:49 Re: Simple select hangs while CPU close to 100% - Analyze
Previous Message Merlin Moncure 2007-08-17 23:55:59 Re: Raid Configurations