Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当数据库有大量的删除时,canal解析变慢 #355

Closed
jayws opened this issue Aug 3, 2017 · 2 comments
Closed

当数据库有大量的删除时,canal解析变慢 #355

jayws opened this issue Aug 3, 2017 · 2 comments

Comments

@jayws
Copy link

jayws commented Aug 3, 2017

当数据库有大量的删除时,canal解析变慢,之前每个小时可以解析5万,有大量删除后每个小时才100条,请问有什么可以解决方法吗?谢谢

@lan1994
Copy link

lan1994 commented Aug 4, 2017

这个和#267 是同一类问题

@wufengbin
Copy link

mysql配置如下参数:innodb_flush_log_at_trx_commit
在提交事务的时候是否提交缓冲?
有3个值:
0:不会主动触发日志缓冲写入磁盘
1(默认):每次提交事务的时候,同时会把日志缓冲刷新到磁盘
2:每次提交事务的时候,会把日志缓冲刷新到磁盘,但是他不是同时进行的
而是每秒钟刷新一次
建议配置成2 ,对性能影响较大。
可以试试这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants