Repository navigation
perf: skip whole shards for ID-ordered deep pages - #246
Merged
Merged
Conversation
Closed
Owner
Author
检视结论:approve对照 #239 深分页子项:仅 复测:118 passed + |
codeasier
marked this pull request as ready for review
October 11, 2026 06:12
codeasier
added a commit
that referenced
this pull request
Oct 11, 2026
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
范围
Refs #239 的 ID 深分页部分;公共预算配置另见 #244。
仅 event/allocation、order_by=id ASC/DESC:复用逐片匹配计数跳过整片,在落点片使用局部OFFSET,按窗口读取,最终event页才补来源/frames。保留actual_range筛选语义、稀疏ID、slice scope、exact_total/has_more/truncated、limit0/负limit/max_rows及int64溢出错误。其他排序保持原路径,不引入cursor API。
验证
基线 main
ffa71df0ddf0fb5f17a904f4092898a27287d21e;审核tree8845e7ab929a65190e3b9577eeadaabd6bca1832。合成1,000,012事件、4分片、page5:ASC/DESC下offset0与1,000,000都收费event19rows、allocation14rows,serialized work<10KB;默认预算即可完成。确定性百万回归随PR提供。
这是减少跨Python候选量,不宣称SQL COUNT/内部OFFSET扫描或完整性hash成本消失,也不依赖提高预算。保留草稿,不自动合并。