Re: Write workload is causing severe slowdown in Production - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Write workload is causing severe slowdown in Production
Date
Msg-id CAHyXU0xyVixmLdiMaD2wUU6DgN2AiXi1_Avm+k7vB49BFYEPPA@mail.gmail.com
Whole thread Raw
In response to Re: Write workload is causing severe slowdown in Production  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: Write workload is causing severe slowdown in Production
List pgsql-performance
On Thu, Mar 22, 2012 at 10:13 AM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> In particular, I recommend that you *never* leave transactions open
> or hold locks while waiting for user response or input.  They *will*
> answer phone calls or go to lunch with things pending, potentially
> blocking other users for extended periods.

This -- transactions aren't meant to intentionally block users but to
allow you to ensure data remains in a valid state in the face of
concurrent activity.  In-transaction locks should be as short as
possible while still giving those guarantees and should hopefully
never be user facing.  If you want user controlled locks, they should
be cooperative and non transactional -- advisory locks.

http://www.postgresql.org/docs/current/static/explicit-locking.html#ADVISORY-LOCKS

merlin

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Write workload is causing severe slowdown in Production
Next
From: Mark Kirkwood
Date:
Subject: Re: Write workload is causing severe slowdown in Production