-
Notifications
You must be signed in to change notification settings - Fork 171
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
单一主键skip过大时候的优化 #213
Comments
两次查询第一次查询主键第二次查询对象 |
这个不错,我那个ORM已经实现,不知道效率提升如何~ |
@shuxinqin 大佬有机会拜读一下理论上大宽表应该能提升不小,转成unionall其实也不错 |
用 unionall 可以减少连接,但是一直有个疑问,unionall 中的每个查询时并行还是串行执行的?我在网上没搜到相关的资料说明,如果是串行,如果表多会不会影响效率? |
@shuxinqin 会影响效率同一个链接一般对应数据库一个线程但是具体内部执行应该是串行所以也在考虑毕竟时间上面估计要花费不少,都是链接会减少到一,感觉还是并行聚合比较好 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: