Is PgConnection.setAutoCommit method heavy operation? #2453
AnonymousVovus
started this conversation in
General
Replies: 2 comments 4 replies
-
I have no idea whether it is "heavy" or not in this context. |
Beta Was this translation helpful? Give feedback.
3 replies
-
The code is as follows: pgjdbc/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java Lines 811 to 879 in c03664e
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello community! I'm using postgresql-42.3.1 jdbc driver in my spring boot java application.
I'm doing some research about how jdbc autocommit works and affects application and database.
So my spring boot application uses DatasourceTransactionManager to handle my application transactions. I found a comment in method
org.springframework.jdbc.datasource.DataSourceTransactionManager#doBegin
So, i'd like to know does the pgjdbc autocommit operation is heavy or not?
Maybe there are come useful recommendations about using autocommit with pgjdbc driver
Thanks for your answer!
Driver Version?
postgresql-42.3.1
Java Version?
openjdk 15.0.2 2021-01-19
OS Version?
k8s container based on Oracle Linux Server release 8.3
PostgreSQL Version?
PostgreSQL 13.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11), 64-bit
Beta Was this translation helpful? Give feedback.
All reactions