-
Notifications
You must be signed in to change notification settings - Fork 409
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
Use iterator in aggregation stages #2480
Use iterator in aggregation stages #2480
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2480 +/- ##
==========================================
- Coverage 65.10% 64.78% -0.33%
==========================================
Files 399 400 +1
Lines 19747 19769 +22
==========================================
- Hits 12857 12808 -49
- Misses 5968 6043 +75
+ Partials 922 918 -4
... and 4 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
@chilagrow this pull request has merge conflicts. |
d9e5ff1
to
5363b18
Compare
…w/FerretDB into issue-1889-aggregation-iterator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the implementation (it looks similar to how FilterIterator
works), but I see quite a lot of things fail, so this PR needs some changes to make the linters and tests pass etc.
Thanks @w84thesun for fixing the linter and merging main 🤗 |
@rumyantseva thanks for noticing this, I think linter/failing tests were due to not being up to date with main branch and few conflicting change. Should be fine now, thanks to @w84thesun 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Closes #1889.
$group
needs to accumulate all values in the memory so it reads all document.$unwind
is a bit tricky to handle array iterator, it reads all document.Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.