Replies: 1 comment
-
不要在for里面操作数据库,尤其是parallelStream。 改成单线程操作数据库,或者先for处理逻辑,最后批量操作数据库。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
service本身用了
@DS(DsConstant.BASE_TENANT)
只操作租户数据库,在使用parallelStream
遍历时发现遍历部分数据后,突然变成操作lamp_ds_c_defaults
库了如日志所示,前两次还是正常的,第三次就出问题了
Beta Was this translation helpful? Give feedback.
All reactions