美文网首页
jdbc的rewriteBatchedStatements参数

jdbc的rewriteBatchedStatements参数

作者: ntjsz | 来源:发表于2022-02-15 16:09 被阅读0次

jdbc可以在执行batch的时候需要设置以下参数,才可以自动压缩批量sql语句,否则还是一个一个执行。
rewriteBatchedStatements=true
源码见这个方法内com.mysql.cj.jdbc.ClientPreparedStatement#executeBatchInternal,对rewriteBatchedStatements参数的判断

相关文章

网友评论

      本文标题:jdbc的rewriteBatchedStatements参数

      本文链接:https://www.haomeiwen.com/subject/cklllrtx.html