Re: Optimize update query - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Optimize update query
Date
Msg-id 20121128145126.69300@gmx.com
Whole thread Raw
In response to Optimize update query  (Niels Kristian Schjødt <nielskristian@autouncle.com>)
List pgsql-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


pgsql-performance by date:

Previous
From: Vitalii Tymchyshyn
Date:
Subject: Re: Database design - best practice
Next
From: Willem Leenen
Date:
Subject: Re: Optimize update query