-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
文档中查询页码不超过100原因? #484
Comments
1.支持调整最大值,见常见问题与提问前必看 2.默认是用 LIMIT OFFSET 分页,MySQL 等数据库对于分页是取 count*(page + 1) 条数据再丢掉前 count*page 条,大分页性能很差,容易导致慢查询甚至拖垮数据库 3.大部分业务需求都不需要也不应该提供超过 100 页的分页,正常用户正常使用不会一页页翻这么多,而是通过搜索等条件来过滤,反而是爬虫、黑客等会需要利用这种安全漏洞 4.Google、百度 搜索,阿里大鱼短信、百度地图 等各大企业的各种流行软件,几乎都把分页数量限制在了 100 以内,甚至 20 以内,每页数量甚至限制在 50 以内 |
@TommyLemon "page":Integer,查询页码,从0开始,默认最大值为100,一般和count一起用 |
@yangzhixi |
Description
请问文档中页码不超过100,是基于什么考虑的?
① "count":Integer,查询数量,0 表示最大值,默认最大值为100
② "page":Integer,查询页码,从0开始,默认最大值为100,一般和count一起用
期望:页码数量不限,count数量可以限制;
The text was updated successfully, but these errors were encountered: