Repository navigation
MOD-19330 perf(numeric): merge the batch's sorted runs instead of re-sorting - #10874
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 686f980f8f
ℹ️ 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".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10874 +/- ##
==========================================
- Coverage 84.22% 83.59% -0.64%
==========================================
Files 650 674 +24
Lines 85392 86531 +1139
Branches 39637 40776 +1139
==========================================
+ Hits 71924 72338 +414
- Misses 13104 13821 +717
- Partials 364 372 +8
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:
|
686f980 to
76ad1fb
Compare
76ad1fb to
3dae0df
Compare
|
❌ The last analysis has failed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3dae0df8b8
ℹ️ 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".
3dae0df to
88dec0c
Compare
88dec0c to
9464e13
Compare
9464e13 to
20d722b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20d722b220
ℹ️ 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".
20d722b to
023db8a
Compare
023db8a to
998aa84
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 998aa84995
ℹ️ 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".
be68c50 to
42d7153
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 42d715323c
ℹ️ 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".
GuyAv46
left a comment
There was a problem hiding this comment.
- I think we can keep the unstable sort.
- Let's refresh the perf table afterward?
|
okay here is the benchmark results pre-unstable-sort (on my machine)
here are the result with
so using |
2272308 to
ef9c20c
Compare
ef9c20c to
7bf46ef
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7bf46ef41d
ℹ️ 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".
7bf46ef to
7f505e5
Compare
|
@GuyAv46 as it turns out, |
7f505e5 to
4375f45
Compare
…lue field against C 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. No group indexed a multivalue field either, so the full read that keeps a document on its best value went unmeasured. The multivalue group gives every document two values in different ranges. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…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]>
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]>
4375f45 to
00de96c
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|




This PR also adds more benchmarks: bounded*
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.