Re: slow select - Mailing list pgsql-performance

From Josh Berkus
Subject Re: slow select
Date
Msg-id 200310221442.56816.josh@agliodbs.com
Whole thread Raw
In response to Re: slow select  ("Medora Schauer" <mschauer@fairfield.com>)
List pgsql-performance
Medora,

> Increasing effective_cache_size to 10000 did it.

That would be 78MB RAM.  If you have more than that available, you can
increase it further.  Ideally, it should be about 2/3 to 3/4 of available
RAM.

>The query now
> takes 4 secs.  I left random_page_cost at the default value of 4.
> I thought, mistakenly apparently, that our database was relatively
> itty bitty and so haven't messed with the .conf file.

Actually, for a itty bitty database on a fast machine, you definitely want to
lower random_page_cost.  It's a large database that would make you cautious
about this.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-performance by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Tuning for mid-size server
Next
From: Rob Nagler
Date:
Subject: Re: vacuum locking