Fork me on GitHub
#sql
<
2021-09-27
>
Ovidiu Stoica06:09:05

Also kind of a newbie question: When using next.jdbc , how does it handle asynchronicity? I see that a query will wait for the previous db query to return, which is useful if you have db queries that depend on previous query results, but should I use core.async for times when I need parallel queries or is there a better way?

emccue16:09:15

@ovidiu.stoica1094 JDBC is inherently a synchronous API

emccue16:09:18

so it doesn't handle asynchronicity at all - it just blocks

emccue16:09:22

(sans some extensions for particular dbs)

emccue16:09:31

> should I use `core.async` for times when I need parallel queries or is there a better way? Connection pooling - via HikariCP or C3P0 - should be your first step for when you have multiple threads that need to make queries