@seancorfield I have this a go, works well 🙂
I notice you are creating a connection using the PreparedStatement, will that play nicely with using execute-batch!
in a transaction?
(jdbc/with-transaction
[tx datasource]
(prepare/execute-batch! (jdbc/prepare tx [statement] {:return-keys true})
rows
{:batch-size 100
:return-generated-keys true
:builder-fn rs/as-unqualified-maps}))