Matej Drobnič
07/01/2019, 5:02 PMVlad
07/02/2019, 7:52 AMCameron Hashemi
07/02/2019, 8:03 AMwithContext(<http://Dispatchers.IO|Dispatchers.IO>) {}
Details and a proof-of-concept in this article: https://ryanharrison.co.uk/2018/04/14/kotlin-ktor-exposed-starter.htmlVlad
07/02/2019, 8:14 AMMatej Drobnič
07/02/2019, 10:28 AMDennis Schröder
07/02/2019, 10:29 AMVlad
07/02/2019, 11:38 AMsuspendedTransaction
function just "propagates" the transaction by keeping it in the CoroutineContext
,
so it won't be "lost" when different thread resumes the execution.Matej Drobnič
07/02/2019, 11:39 AMyou can use a dedicated thread pool for blocking JDBC queries, e.g.Right, but how is this any better than just going blocking all the way if you are already going to use a lot of blocking threads?
Vlad
07/02/2019, 2:27 PMobobo
07/02/2019, 6:54 PM