-
Notifications
You must be signed in to change notification settings - Fork 40
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
BatchInsert java.lang.StackOverflowError: null #31
Comments
很奇怪的是,我之前是2000为一次batch插入是发生这个异常,换成 1W一次batchInsert没有问题 |
|
感觉有可能是因为2000条一页的时候开的线程数太多了? |
但是我用的是线程池,6 core, 12 线程 队列 是 9999 如上所述,450页的话,就会循环450次 @async里面的线程方法去batchInsert
|
|
|
xml 看上去没有问题,如果dataStr每条写入值的栏位跟params一致,应该不会有太大问题。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
批量插入导致 java.lang.StackOverflowError: null
我的逻辑是从数据库中分页查询出数据,然后分批次 多线程批量插入,例如:九十万数据,分 2000条数据,总共450页。
错误栈如下
The text was updated successfully, but these errors were encountered: