使用jdbcTemplate BatchUpdate批量插入效率慢的问题
原因是没加jdbc连接参数导致多条插入被识别成一条一条执行,在jdbc连接URL后加上如下参数: rewriteBatchedStatements=true examp:url: jdbc:mysql://xxxx:3306/syncdata_test?useUnicode=true&characterEncoding=utf8&rewriteBatchedSt..
·
原因是没加jdbc连接参数导致多条插入被识别成一条一条执行,在jdbc连接URL后加上如下参数:
rewriteBatchedStatements=true
examp:
url: jdbc:mysql://xxxx:3306/syncdata_test?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
转载至:
https://blog.csdn.net/zhangyadick18/article/details/50294265
更多推荐
所有评论(0)