当前位置:Gxlcms > 数据库问题 > mysql sql优化

mysql sql优化

时间:2021-07-01 10:21:17 帮助过:22人阅读

“rewriteBatchedStatements=true”,否则jdbc不会真正使用批量插入。

(2)如果mysql有主从,注意每次批量插入的数量不要太多,防止失败。

 

3. 观察mysql执行的sql

用tail -f查看即可,sql执行日志文件路径在my.cnf文件中general_log_file定义。

 

4. 使用explain

详解参见 http://database.51cto.com/art/200912/168453.htm

 

mysql sql优化

标签:file   文件   数据   提升   没有   .com   targe   tar   style   

人气教程排行