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

查询数据使用贪婪加载时 有可能报 in 的参数过多 #119

Open
zhuwansu opened this issue Sep 17, 2017 · 1 comment
Open

查询数据使用贪婪加载时 有可能报 in 的参数过多 #119

zhuwansu opened this issue Sep 17, 2017 · 1 comment

Comments

@zhuwansu
Copy link
Contributor

zhuwansu commented Sep 17, 2017

原因是 贪婪加载的实现,和贪懒加载可以多层引用的设计,比如 查询 20000个 father 贪婪加载 他们的 father.sonList 或 father.son 贪婪加载就会报 in的参数过多。 比如查询 1000个father 贪婪加载他们的
father.sonList sonList 各有 10个 也就是 10000个son 如果再贪婪加载son.sonList 也会报in参数过多。
。。。子子孙孙无穷尽也。

@zhuwansu
Copy link
Contributor Author

树形实体的某些子查询 也有可能出现此问题,修改的时候应该考虑 。
可以参考或使用 QueryInBatches

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

No branches or pull requests

2 participants