Re: Write workload is causing severe slowdown in Production
От | Merlin Moncure |
---|---|
Тема | Re: Write workload is causing severe slowdown in Production |
Дата | |
Msg-id | CAHyXU0xyVixmLdiMaD2wUU6DgN2AiXi1_Avm+k7vB49BFYEPPA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Write workload is causing severe slowdown in Production ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
Ответы |
Re: Write workload is causing severe slowdown in Production
|
Список | 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 по дате отправления: