Skip to content
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

Pushdown simplest sorting for aggregate command #2530

Merged
merged 26 commits into from
May 3, 2023

Conversation

noisersup
Copy link
Member

@noisersup noisersup commented Apr 28, 2023

Description

Closes #2438.

Let's review it after merging #2506.

From @rumyantseva: I tested it manually ($match + $sort, only $sort, $sort + $match), and it works! Feel free to try it as well (don't forget to set --test-enable-sorting-pushdown flag).

Readiness checklist

  • I added/updated unit tests.
  • I added/updated integration/compatibility tests.
  • I added/updated comments and checked rendering.
  • I made spot refactorings.
  • I updated user documentation.
  • I ran task all, and it passed.
  • I ensured that PR title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@noisersup noisersup self-assigned this Apr 28, 2023
@noisersup noisersup added the code/chore Code maintenance improvements label Apr 28, 2023
@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #2530 (a81592e) into main (717f0fa) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2530      +/-   ##
==========================================
- Coverage   27.00%   26.97%   -0.04%     
==========================================
  Files         405      405              
  Lines       20086    20110      +24     
==========================================
  Hits         5424     5424              
- Misses      14091    14115      +24     
  Partials      571      571              
Impacted Files Coverage Δ
...al/handlers/common/aggregations/stages/pushdown.go 0.00% <0.00%> (ø)
internal/handlers/pg/msg_aggregate.go 0.00% <0.00%> (ø)
internal/handlers/pg/msg_explain.go 0.00% <0.00%> (ø)
internal/handlers/tigris/msg_aggregate.go 0.00% <0.00%> (ø)
internal/handlers/tigris/msg_explain.go 0.00% <0.00%> (ø)
Flag Coverage Δ
integration 5.03% <0.00%> (-0.01%) ⬇️
mongodb 5.03% <0.00%> (-0.01%) ⬇️
unit 25.60% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@mergify
Copy link
Contributor

mergify bot commented Apr 28, 2023

@noisersup this pull request has merge conflicts.

@mergify mergify bot added the conflict PRs that have merge conflicts label Apr 28, 2023
@mergify mergify bot removed the conflict PRs that have merge conflicts label May 2, 2023
@rumyantseva rumyantseva self-assigned this May 2, 2023
@rumyantseva rumyantseva requested a review from a team May 2, 2023 14:06
@rumyantseva rumyantseva marked this pull request as ready for review May 2, 2023 14:06
@rumyantseva rumyantseva requested a review from a team as a code owner May 2, 2023 14:06
@rumyantseva rumyantseva enabled auto-merge (squash) May 2, 2023 14:06
@rumyantseva rumyantseva requested a review from AlekSi May 2, 2023 14:07
@rumyantseva rumyantseva changed the title Pushdown simplest sorting for aggregate command Pushdown simplest sorting for aggregate command May 2, 2023
rumyantseva
rumyantseva previously approved these changes May 3, 2023
Copy link
Contributor

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve, but as I added some code here, more reviews are needed (@w84thesun @AlekSi)

Copy link
Contributor

@w84thesun w84thesun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rumyantseva rumyantseva merged commit 5aca87b into FerretDB:main May 3, 2023
@AlekSi AlekSi added this to the v1.1.0 milestone May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Pushdown simplest sorting with ORDER BY
4 participants