之前的数据库连接   批量新增2000条数据需要30s左右

jdbc:mysql://192.168.50.226:3306/parkdb?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai

修改后的连接,添加 rewriteBatchedStatements=true 即可 2000条大概0.5s
jdbc:mysql://192.168.50.226:3306/parkdb?characterEncoding=UTF-8&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true

相关文章:

  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案