From: Kevin Grittner <kgrittn@mail.com>
To: "Niels Kristian Schjødt" <nielskristian@autouncle.com>
To: pgsql-performance@postgresql.org
Subject: Re: Optimize update query
Date: Wed, 28 Nov 2012 09:51:26 -0500
Message-ID: <20121128145126.69300@gmx.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
Niels Kristian Schjødt wrote:
> PS. I'm on postgres 9.2 on a server with 32gb ram, 8 cores and
> two 3T disks in a software raid 1 setup.
In addtion to the excellent advice from Shaun, I would like to
point out a few other things.
One query runs on one core. In a test of a single query, the other
seven cores aren't doing anything. Be sure to pay attention to how
a representative workload is handled.
Unless you have tuned your postgresql.conf settings, you probably
aren't taking very good advantage of that RAM.
For heavy load you need lots of spindles and a good RAID controller
with battery-backed cache configured for write-back.
You will probably benefit from reading this page:
http://wiki.postgresql.org/wiki/SlowQueryQuestions
If you don't already have it, you will probably find Greg Smith's
book on PostgreSQL performance a great investment:
http://www.postgresql.org/docs/books/
-Kevin
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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: kgrittn@mail.com, nielskristian@autouncle.com
Subject: Re: Optimize update query
In-Reply-To: <20121128145126.69300@gmx.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