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

Subquery Spin-Off: Prioritize query sharding #10621

Merged

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Feb 10, 2025

In cases where we aggregate the results of a subquery, sharding is faster in some cases, slower in some. Overall, the impact of the feature seems to be near-zero.

Since:

  • we're not gaining anything
  • subquery spin-off is the newer feature, and it would be preferrable not to introduce a regression on existing queries
  • subquery spin-off has an additional overhead of running a second query

I think we can give query sharding the priority

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

In cases where we aggregate the results of a subquery, sharding is faster in some cases, slower in some. Overall, the impact of the feature seems to be near-zero.

Since:
- we're not gaining anything
- subquery spin-off is the newer feature, and it would be preferrable not to introduce a regression on existing queries
- subquery spin-off has an additional overhead of running a second query

I think we can give query sharding the priority
@julienduchesne julienduchesne marked this pull request as ready for review February 10, 2025 15:46
@julienduchesne julienduchesne requested a review from a team as a code owner February 10, 2025 15:46
Copy link
Contributor

@colega colega left a comment

Choose a reason for hiding this comment

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

I think we should have a test that checks this. Also changelog should be updated (adding this PR to the line where feature was implemented)

@julienduchesne
Copy link
Member Author

julienduchesne commented Feb 10, 2025

I think we should have a test that checks this

Done!

Also changelog should be updated

🤦 I was sure I added a CHANGELOG for this, but seems I forgot. Added it now, with all three PRs listed

@julienduchesne julienduchesne requested a review from a team February 10, 2025 16:40
Co-authored-by: Taylor C <[email protected]>
Co-authored-by: Charles Korn <[email protected]>
@julienduchesne julienduchesne merged commit 7338cd2 into main Feb 11, 2025
28 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/subquery-spin-off-prioritize-sharding branch February 11, 2025 13:43
julienduchesne added a commit that referenced this pull request Feb 11, 2025
* Subquery Spin-Off: Prioritize query sharding
In cases where we aggregate the results of a subquery, sharding is faster in some cases, slower in some. Overall, the impact of the feature seems to be near-zero.

Since:
- we're not gaining anything
- subquery spin-off is the newer feature, and it would be preferrable not to introduce a regression on existing queries
- subquery spin-off has an additional overhead of running a second query

I think we can give query sharding the priority

* Add test + Add CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Taylor C <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Charles Korn <[email protected]>

---------

Co-authored-by: Taylor C <[email protected]>
Co-authored-by: Charles Korn <[email protected]>
(cherry picked from commit 7338cd2)

Co-authored-by: Julien Duchesne <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants