public inbox for [email protected]  
help / color / mirror / Atom feed
From: Gambhir Singh <[email protected]>
To: [email protected]
Subject: Update command causing lock in DB.
Date: Wed, 7 May 2025 16:45:17 +0530
Message-ID: <CAHOGQfWk-xb3q0QSXY=xUsMohChEEZwjxoTzrFUK+D_GEcO+uw@mail.gmail.com> (raw)

Hi,

Application team was executing UPDATE statement in DB through Abinitio
graph. When they trigger a job, a session is spawned in DB, in parallel
another session is also spawned and executed the same UPDATE statement.

When I checked the locks in DB, I found that both the sessions are updating
the same record. My concern is how UPDATE causes locking in DB.

Here is how MVCC works. If one session is updating a record, it should
release the lock once it updated the row and other one should be able to
acquire the row lock. Maybe I am wrong, please suggest how to handle this
situation.

-- 
Thanks & Regards
Gambhir Singh


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]
  Subject: Re: Update command causing lock in DB.
  In-Reply-To: <CAHOGQfWk-xb3q0QSXY=xUsMohChEEZwjxoTzrFUK+D_GEcO+uw@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