Re: Optimize update query
От | Kevin Grittner |
---|---|
Тема | Re: Optimize update query |
Дата | |
Msg-id | 20121128145126.69300@gmx.com обсуждение исходный текст |
Ответ на | Optimize update query (Niels Kristian Schjødt <nielskristian@autouncle.com>) |
Список | 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 по дате отправления: