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

mango 可以强制使用jdbc的批量更新吗 #19

Closed
zhangzpap opened this issue Nov 7, 2016 · 2 comments
Closed

mango 可以强制使用jdbc的批量更新吗 #19

zhangzpap opened this issue Nov 7, 2016 · 2 comments

Comments

@zhangzpap
Copy link

需要注意的是,mango内部有两种批量更新的实现,如果批量更新在同一个数据源的同一张表上完成,mango会使用jdbc原生的批量更新方法,否则mango会在内部进行循环更新。

mango内部循环更新太慢了,还有其他解决办法吗

@liangyanghe
Copy link
Member

如果数据理论支持批量更新,mango就走批量更新。但如果分库后,数据在两个库上,则只能内部循环更新啦。

数据在两个库上,只能循环更新,没有更好的办法哟

@zhangzpap
Copy link
Author

嗯。
貌似使用事物更新效率貌似是提高了很多

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

2 participants