From: Gnanakumar <gnanam@zoniac.com>
To: 'Merlin Moncure' <mmoncure@gmail.com>
To: 'Kevin Grittner' <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org
Subject: Re: Write workload is causing severe slowdown in Production
Date: Fri, 23 Mar 2012 15:40:05 +0530
Message-ID: <006c01cd08dd$205af940$6110ebc0$@com> (raw)
In-Reply-To: <CAHyXU0xyVixmLdiMaD2wUU6DgN2AiXi1_Avm+k7vB49BFYEPPA@mail.gmail.com>
References: <006301cd07fd$358ebe40$a0ac3ac0$@com>
<4F6AFB5902000025000465C7@gw.wicourts.gov>
<CAHyXU0xyVixmLdiMaD2wUU6DgN2AiXi1_Avm+k7vB49BFYEPPA@mail.gmail.com>
First off, thank you *so much* for that detailed explanation comparing with
a real-time application performance benchmark, which was really enlightening
for me.
> How are you handling concurrency? (Are you using FOR SHARE on your
> SELECT statements? Are you explicitly acquiring table locks before
> modifying data? Etc.) You might be introducing blocking somehow.
No, actually am not explicitly locking any tables -- all are *simple*
select, update, insert statements only.
> In particular, I recommend that you *never* leave transactions open
> or hold locks while waiting for user response or input.
Again, we're not leaving any transaction opens until for any user responses,
etc.
> When you hit that issue, there is not a continual slowdown --
> queries which normally run very fast (a small fraction of a second)
> may periodically all take tens of seconds. Is that the pattern
> you're seeing?
Yes, you're correct. Queries those normally run fast are becoming slow at
the time of this slowdown.
> Besides the outdated PostgreSQL release and possible blocking, I
> would be concerned if you are using any sort of ORM for the update
> application. You want to watch that very closely because the
> default behavior of many of them does not scale well. There's
> usually a way to get better performance through configuration and/or
> bypassing automatic query generation for complex data requests.
Am not able to understand above statements (...any sort of ORM for the
update application ...) clearly. Can you help me in understanding this?
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: gnanam@zoniac.com, mmoncure@gmail.com, Kevin.Grittner@wicourts.gov
Subject: Re: Write workload is causing severe slowdown in Production
In-Reply-To: <006c01cd08dd$205af940$6110ebc0$@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