Re: Database Locks , Performance Issues and How to Resolve? - Mailing list pgsql-admin

From Jeff Janes
Subject Re: Database Locks , Performance Issues and How to Resolve?
Date
Msg-id CAMkU=1woEXPgJ-O8DrA-TS7vJrp=H044eWqHZMHfFbUSM0kTJg@mail.gmail.com
Whole thread Raw
In response to RE: Database Locks , Performance Issues and How to Resolve?  (<soumik.bhattacharjee@kpn.com>)
List pgsql-admin
On Thu, Jan 2, 2020 at 5:35 AM <soumik.bhattacharjee@kpn.com> wrote:

-                      I want to know if below is true in case of Postgres ? Then it’s a problem as all coding needs to be done manually and not by JPA.

 

By default in Java Spring boot autocommit set to true. It means all the SQL statements consider as a transactions (include Select statement).

Automatically Begin and commit will execute only successful execution of each statement.


Well, was it "idle in transaction"?  If so, the either the query came in through something other than Spring Boot, or someone overrode the default.  There is no grand answer here, you have to figure out what actually happened.
 
Cheers,

Jeff

pgsql-admin by date:

Previous
From:
Date:
Subject: RE: Database Locks , Performance Issues and How to Resolve?
Next
From: Shrikant Bhende
Date:
Subject: Alter command getting stuck on a table