is there a way in clojure.java.jdbc
to explicitly not call addBatch
if the driver doesn’t support that? <https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L1054>
realizing that it will absolutely kill the performance, I know
@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).
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
You could always add next.jdbc
as an additional dep and use it just for this one situation 🙂
(we use both libs side-by-side)