jdbc可以在执行batch的时候需要设置以下参数,才可以自动压缩批量sql语句,否则还是一个一个执行。
rewriteBatchedStatements=true
源码见这个方法内com.mysql.cj.jdbc.ClientPreparedStatement#executeBatchInternal
,对rewriteBatchedStatements
参数的判断
jdbc可以在执行batch的时候需要设置以下参数,才可以自动压缩批量sql语句,否则还是一个一个执行。
rewriteBatchedStatements=true
源码见这个方法内com.mysql.cj.jdbc.ClientPreparedStatement#executeBatchInternal
,对rewriteBatchedStatements
参数的判断
本文标题:jdbc的rewriteBatchedStatements参数
本文链接:https://www.haomeiwen.com/subject/cklllrtx.html
网友评论