Repository navigation
MOD-19331 perf(numeric): let the child filter drive batch materialization - #10876
ThierryBerger wants to merge 7 commits into
Conversation
bd7e2b9 to
8fd6f1e
Compare
686f980 to
76ad1fb
Compare
8fd6f1e to
9abf76d
Compare
76ad1fb to
3dae0df
Compare
|
❌ The last analysis has failed. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## thierry-14948-merge-runs #10876 +/- ##
============================================================
+ Coverage 80.81% 83.52% +2.70%
============================================================
Files 668 668
Lines 86276 86374 +98
Branches 40468 40566 +98
============================================================
+ Hits 69722 72141 +2419
+ Misses 16183 13849 -2334
- Partials 371 384 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9abf76d to
cba3293
Compare
3dae0df to
88dec0c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cba3293c7b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
88dec0c to
9464e13
Compare
4de7716 to
ea2f71c
Compare
9464e13 to
20d722b
Compare
ea2f71c to
39a2a7c
Compare
023db8a to
998aa84
Compare
2013887 to
c61fbb9
Compare
be68c50 to
42d7153
Compare
c61fbb9 to
bd64749
Compare
bd64749 to
0dfca4d
Compare
f08d92a to
2b95393
Compare
0dfca4d to
e8a0917
Compare
2b95393 to
64f2b0f
Compare
64f2b0f to
cae917e
Compare
cae917e to
e42f9f5
Compare
0301ff4 to
9cee5c5
Compare
2272308 to
ef9c20c
Compare
9cee5c5 to
7f5d0fc
Compare
…rtly admits A range that passes the filter only in part may yield none of its documents, and a single-value range never splits, so reserving its full num_docs could allocate ~16 B per doc for an empty batch. Capping such a range at MAXIMUM_RANGE_SIZE keeps the reservation unchanged for every leaf the tree can split, so bounded-filter batches still fill without reallocating. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…atch Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Every group queried the whole field, so no range ever passed the filter only in part. The bounded group queries the middle of the field and a single-value range the filter excludes; the C shim now takes the filter bounds so both sides run the same query. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
7f5d0fc to
d2ab63d
Compare
ef9c20c to
7bf46ef
Compare
d2ab63d to
af1eafa
Compare
7bf46ef to
7f505e5
Compare
On a multivalue field a range wholly inside the filter can still yield nothing: the docs it holds may all have been emitted by an earlier batch. Its num_docs is an upper bound there, so cap it at MAXIMUM_RANGE_SIZE like a partly admitted range, keeping the exact reservation for single-valued fields only. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ng it After a match any later doc id will do, so a sequential read replaces the skip_to, which an expensive child such as a union pays a search for. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
af1eafa to
0db2d72
Compare
7f505e5 to
4375f45
Compare
|
4375f45 to
00de96c
Compare



built on top of MOD-19330 perf(numeric): merge the batch's sorted runs instead of re-sorting #10874
next: MOD-19332 perf(numeric): go through the child query only once per batch #11561
Mark if applicable
Release Notes
If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.