Re: Optimize update query

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Niels Kristian Schjødt" <nielskristian(at)autouncle(dot)com>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Optimize update query
Date: 2012-11-28 14:51:26
Message-ID: 20121128145126.69300@gmx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-performance by date

  From Date Subject
Next Message Willem Leenen 2012-11-28 15:11:46 Re: Optimize update query
Previous Message Vitalii Tymchyshyn 2012-11-28 14:41:14 Re: Database design - best practice