原因:数据库批量插入,但是使用后还是感觉很慢
最后解决:
增加:
allowMultiQueries=true和rewriteBatchedStatements=true 允许批量读和写操作
url: jdbc:mysql://localhost:3306/test?autoReconnect=true&characterEncoding=utf-8&rewriteBatchedStatements=true&allowMultiQueries=true
原因:数据库批量插入,但是使用后还是感觉很慢
最后解决:
增加:
allowMultiQueries=true和rewriteBatchedStatements=true 允许批量读和写操作
url: jdbc:mysql://localhost:3306/test?autoReconnect=true&characterEncoding=utf-8&rewriteBatchedStatements=true&allowMultiQueries=true