You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
调研使用go-mysql-transfer时,发现千万级别的大表数据同步时,对于mysql的压力很大,
优化建议:
将 select b.* from (select %s from %s order by %s limit %d,%d) a left join %s b on a.%s=b.%s
通过EXPLAIN 虚拟表并未用到索引
期望优化成 : SELECT * FROM table where id > 0 order by id limit 100
通过迭代主键id 的方式替换掉 使用虚拟表的方式