Re: full vacuum really slows down query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jason Long <mailing(dot)list(at)supernovasoftware(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: full vacuum really slows down query
Date: 2008-06-04 23:44:28
Message-ID: 7068.1212623068@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jason Long <mailing(dot)list(at)supernovasoftware(dot)com> writes:
> I have a query that takes 2 sec if I run it from a freshly restored
> dump. If I run a full vacuum on the database it then takes 30 seconds.

> Would someone please comment as to why I would see a 15x slow down by
> only vacuuming the DB?

EXPLAIN ANALYZE of both cases might yield some insight.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jason Long 2008-06-04 23:49:04 Re: full vacuum really slows down query
Previous Message Stephan Szabo 2008-06-04 23:34:21 Re: Script errors on run