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

深度分页介绍及优化建议中存在冗余的LIMIT语句 #2273

Open
MrXionGe opened this issue Feb 19, 2024 · 1 comment
Open

深度分页介绍及优化建议中存在冗余的LIMIT语句 #2273

MrXionGe opened this issue Feb 19, 2024 · 1 comment

Comments

@MrXionGe
Copy link
Contributor

页面

https://javaguide.cn/high-performance/deep-pagination-optimization.html#%E5%BB%B6%E8%BF%9F%E5%85%B3%E8%81%94

截图

image
“INNER JOIN”中已经限制了10条数据,关联出来的数据也应该是10条,所以我觉得第四行的“LIMIT 10”是冗余的语句。不过加上它倒也不会出错。

@Snailclimb
Copy link
Owner

页面

https://javaguide.cn/high-performance/deep-pagination-optimization.html#%E5%BB%B6%E8%BF%9F%E5%85%B3%E8%81%94

截图

image “INNER JOIN”中已经限制了10条数据,关联出来的数据也应该是10条,所以我觉得第四行的“LIMIT 10”是冗余的语句。不过加上它倒也不会出错。

确实,我都没注意。

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