Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有主从复制,我们有很多记录插入到主从更新不够快的地步。我们有 innodb,也许从站上的复制是单线程的。我想知道我们是否可以在数据库端做些什么,而不是对编码或表结构等进行更改。
我们遇到了类似的情况,帮助我们的是在 slave 上启用这两个参数:
innodb_flush_log_at_trx_commit=0 sync_binlog=0
innodb_flush_log_at_trx_commit=0
sync_binlog=0
他们使从属实例不那么耐用,但速度更快。希望它会有所帮助。