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

Apply DISTINCT for RootCollectionPageTotalsQueryBuilder only on JOINS #3210

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

miks
Copy link
Contributor

@miks miks commented Apr 25, 2024

Speed up regular count queries without joins

Description

For large datasets, removing DISTINCT can significantly enhance performance.

Motivation and Context

Removing DISTINCT from count queries that do not involve joins.

How Has This Been Tested?

Tests have been updated according to the changes made in the logic.

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@aklish aklish merged commit 61a9361 into yahoo:master Apr 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants