From: Josh Berkus <josh@agliodbs.com>
To: Medora Schauer <mschauer@fairfield.com>
To: postgresql <pgsql-performance@postgresql.org>
Subject: Re: slow select
Date: Wed, 22 Oct 2003 14:42:56 -0700
Message-ID: <200310221442.56816.josh@agliodbs.com> (raw)
In-Reply-To: <906E2C446A276048A1BE283F17BCB12CDB4230@encounter.fairind.fairfield.com>
References: <906E2C446A276048A1BE283F17BCB12CDB4230@encounter.fairind.fairfield.com>
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
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: josh@agliodbs.com, mschauer@fairfield.com
Subject: Re: slow select
In-Reply-To: <200310221442.56816.josh@agliodbs.com>
* 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