1、修改数据库sys_data_source表中的db_url字段值,在原来的db_url结尾拼接&allowMultiQueries=true&rewriteBatchedStatements=true
2、清理redis缓存sys:cache:dbconnect:dynamic:xxxxx(数据库名称)
3、再次执行官网testJdbcInsert100000BatchSave()方法
4、搞定收工,10000条数据保存时间平均700毫秒左右
1、修改数据库sys_data_source表中的db_url字段值,在原来的db_url结尾拼接&allowMultiQueries=true&rewriteBatchedStatements=true
2、清理redis缓存sys:cache:dbconnect:dynamic:xxxxx(数据库名称)
3、再次执行官网testJdbcInsert100000BatchSave()方法
4、搞定收工,10000条数据保存时间平均700毫秒左右