You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep thanks, should be using Dispatchers.IO will update that.
As for the autoCommit it was/is due to the fact that Exposed requires all queries to be run within a transaction anyway, so it will always manage the commit itself. Ref below issue which also discusses it more. Having auto-commit set to true by default on the connections Hikari creates and then Exposed setting it to false every time isn't great performance wise so I set it straight on the pool config.
The situation might be different now but I can still see the same code segments in place. Really is just an Exposed thing as opposed to anything else with Ktor/Hikari etc.
Also, shouldn't the
newSuspendedTransaction {}
block inDatabaseFactory
be usingDispatchers.IO
? That's how JetBrains does it in the Ktor docs.Mostly, I'm just wondering why you would want Hikari set to
isAutoCommit = false
.Thanks!
The text was updated successfully, but these errors were encountered: