Fork me on GitHub
#sql
<
2019-05-10
>
bortef10:05:28

Hi, does anybody has an example of how to run multiple concurrent queries with clojure.java.jdbc and c3p0 pool manager?

seancorfield16:05:07

Not sure what you're asking @bertofer That's what happens automatically in multi-threaded code.

seancorfield16:05:36

(It's not related to the jdbc level stuff)

bortef16:05:54

I am using pmap, I will try with core.async/thread as I used it in another place and the concurrency was working fine

seancorfield16:05:49

pmap is a bit of a sledgehammer -- and is usually the wrong solution to any problem.

👍 2
seancorfield18:05:19

A reminder that I'm still open to feedback on the reducible! name in next.jdbc: https://github.com/seancorfield/next-jdbc/issues/16 -- I will probably only keep that open for another week at this point, as I plan to move to Beta soon (and swiftly on to RC/gold, I hope!).

parrot 1