From: Claus Guttesen <kometen@gmail.com>
To: Kenji Morishige <kenjim@juniper.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S
Date: Sat, 18 Mar 2006 00:29:17 +0100
Message-ID: <b41c75520603171529h20090f12s@mail.gmail.com> (raw)
In-Reply-To: <20060317221116.GA14661@juniper.net>
References: <20060317221116.GA14661@juniper.net>
> 4. Are there any other settings in the conf file I could try to tweak?
One more thing :-)
I stumbled over this setting, this made the db (PG 7.4.9) make use of
the index rather than doing a sequential scan and it reduced a query
from several minutes to some 20 seconds.
random_page_cost = 2 (original value was 4).
Another thing you ought to do is to to get the four-five most used
queries and do an explain analyze in these. Since our website wasn't
prepared for this type of statistics I simply did a tcpdump, grep'ed
all select's, sorted them and sorted them unique so I could see which
queries were used most.
regards
Claus
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: kometen@gmail.com, kenjim@juniper.net
Subject: Re: Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S
In-Reply-To: <b41c75520603171529h20090f12s@mail.gmail.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