Fork me on GitHub
#sql
<
2021-06-07
>
Jeff Evans18:06:17

is there a way in clojure.java.jdbc to explicitly not call addBatch if the driver doesn’t support that?

Jeff Evans18:06:25

realizing that it will absolutely kill the performance, I know

seancorfield19:06:59

@jeffrey.wayne.evans I’d recommend upgrading/migrating to next.jdbc where that’s not an issue — only execute-batch! uses .addBatch so you can avoid it if your DB does not support it; everything else uses the generic .execute function. clojure.java.jdbc will only get security fixes at this point (it is “stable” and not maintained beyond that).

Jeff Evans19:06:20

thanks, I’ll make sure to open an issue for us to do that (if there isn’t one already). unfortunately it’s not going to be in the cards for the “small” piece of work I’m doing now

seancorfield19:06:28

You could always add next.jdbc as an additional dep and use it just for this one situation 🙂

2
seancorfield19:06:39

(we use both libs side-by-side)