知识卡片
先筛选再排序分页
在完整集合先应用查询条件,对匹配结果排序,再截取所请求页。先截取后过滤会降低结果数量并遗漏后面页的匹配项。下一页应属于相同筛选与排序视图。
结构图:
flowchart TD
A["候选工作全集"] --> B["应用过滤条件"]
B --> C["排列匹配项及稳定次序"]
C --> D["取出当前页"]
D --> E["返回项目及续页信息"]
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Scaling collection endpoints with filters and pagination 章首与范围 · 查看原书依据
These definitions are visualized in figure 17.1. The three options are not mutually exclusive—they can be used in any combination. When combined, the following order applies:
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第17章《Scaling collection endpoints with filters and pagination》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch17.htm,阅读块 10)
- 结论依据:图 17.1 前后给出三者并用的处理顺序。
- 原始内容:These definitions are visualized in figure 17.1. The three options are not mutually exclusive—they can be used in any combination. When combined, the following order applies: