MySQL优化

 

 

  1. binlog=statement

    binlog是在事务提交时才进行fsync刷盘,刷盘操作耗费IO,statement只需要一条语句,而不是所有操作过的数据行
    可能造成主从不一致

posted @ 2021-01-19 17:58  ascertain  阅读(50)  评论(0编辑  收藏  举报