Bård Kristian
11/25/2024, 11:02 AMspand
11/25/2024, 11:21 AMFernando Sanchez (Perraco Labs)
11/25/2024, 2:52 PMnewSuspendedTransaction()
and Transaction.withSuspendTransaction()
to address these issues, keeping transactions small and localized minimizes thread-related risks.
If you are using Ktor, then there is a plugin on the works that would allow transactions to start at endpoint level managing all the thread switching automatically, but seems is still under review (https://youtrack.jetbrains.com/issue/KTOR-5310/Transaction-plugin-for-Databases-start-with-Exposed)Daniel Pitts
11/26/2024, 1:00 AM