Skip to content

Commit

Permalink
Setting HirakiCP default autoCommit to false
Browse files Browse the repository at this point in the history
  • Loading branch information
simonredfern committed Nov 8, 2023
1 parent 2298f5b commit e99ea49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CustomDBVendor(driverName: String,
config.setMaxLifetime(maxLifetime.head)
}
//Liftweb DB.scala will set all the new connections to false, so here we set default to false - Hmm, check this comment!
val autoCommitValue: Boolean = true
val autoCommitValue: Boolean = false
config.setAutoCommit(autoCommitValue)
logger.info(s"We set HikariDatasource config.setAutoCommit=$autoCommitValue")
logger.info(s"Note: HirakiCP will reset any connection to autoCommit=$autoCommitValue when it returns it to the pool if it has been otherwise set in code. (This can cause further debug messages and some performance impact.)")
Expand Down

0 comments on commit e99ea49

Please sign in to comment.