public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikolay Samokhvalov <[email protected]>
To: Eric Schwarzenbach <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: can a blocked transaction affect the performance of one that is blocking it?
Date: Mon, 9 Dec 2024 15:10:32 -0800
Message-ID: <CAM527d_JP20hZ9bLKWUmMXx_bQms4B=W4321HApfcQ98cx_1HA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Mon, Dec 9, 2024 at 13:16 Eric Schwarzenbach <[email protected]>
wrote:

> Hi,
>
> Could one transaction (one that should be relatively simple and short)
> cause another complex, long running transaction (involving INSERTS, on a
> table the first transaction may be reading from) to take many orders of
> magnitude longer than it would normally? (short of competing for system
> resources, like CPU time etc, of course)
>
> I don't believe my scenario involved a deadlock but I expect my short
> transaction was probably blocked by my long one. Does it make any sense
> that this could very significantly affect the performance of the
> non-blocked transaction?
>
> Thanks,
>
> Eric


Have you tried wait event analysis (looking at wait_event_type, wait_event,
state, query samples from pg_stat_activity)?

>


view thread (3+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: can a blocked transaction affect the performance of one that is blocking it?
  In-Reply-To: <CAM527d_JP20hZ9bLKWUmMXx_bQms4B=W4321HApfcQ98cx_1HA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox