pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cosimo Streppone <cosimo@streppone.it>
To: Postgresql Performance List <pgsql-performance@postgresql.org>
Subject: Update on high concurrency OLTP application and Postgres 8 tuning
Date: Wed, 20 Sep 2006 11:09:23 +0200
Message-ID: <45110543.6020501@streppone.it> (raw)

Hi all,

I was searching tips to speed up/reduce load on a Pg8 app.
Thank you for all your suggestions on the matter.
Thread is archived here:

http://www.mail-archive.com/pgsql-performance@postgresql.org/msg18342.html

After intensive application profiling and database workload analysis,
I managed to reduce CPU load with application-level changes.

For database overload in presence of many concurrent
transactions, I found that just doing an "ANALYZE" on sensible
relations makes the situation better.

I scheduled a cron job every hour or so that runs an analyze on the
4/5 most intensive relations and sleeps 30 seconds between every
analyze.

This has optimized db response times when many clients run together.
I wanted to report this, maybe it can be helpful for others
out there... :-)

-- 
Cosimo




view thread (5+ messages)  latest in thread

Message-ID: <45110543.6020501@streppone.it>
Permalink:  ../45110543.6020501@streppone.it/
Also on:    postgresql.org/message-id/45110543.6020501@streppone.it

 · 

reply

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: cosimo@streppone.it
  Subject: Re: Update on high concurrency OLTP application and Postgres 8 tuning
  In-Reply-To: <45110543.6020501@streppone.it>

* 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