Re: Help with sql - Mailing list pgsql-general

From Chris Angelico
Subject Re: Help with sql
Date
Msg-id CAPTjJmr_iBNAXJeSw0KLJTJMye6uGPtBfjYt=e2Shqc43hFKug@mail.gmail.com
Whole thread Raw
In response to Re: Help with sql  (Perry Smith <pedzsan@gmail.com>)
List pgsql-general
On Sat, Jul 7, 2012 at 11:48 PM, Perry Smith <pedzsan@gmail.com> wrote:
> The database is mostly static.  I run through a very lengthy process to populate the database maybe once a month and
thenit is 99% read-only. 

Do you run an ANALYZE on the table after populating it? Postgres needs
up-to-date statistics for best results. I'd recommend doing an
explicit 'VACUUM ANALYZE' once your data's loaded, and then try your
queries after that - it might not do much, but it also might give a
massive improvement.

ChrisA

pgsql-general by date:

Previous
From: Perry Smith
Date:
Subject: Re: Help with sql
Next
From: Tom Lane
Date:
Subject: Re: BUG? Regular expression matching of optional character group at beginning of RE