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

add exists -> semi in q4 #126

Merged
merged 2 commits into from
Jun 2, 2024
Merged

add exists -> semi in q4 #126

merged 2 commits into from
Jun 2, 2024

Conversation

ritchie46
Copy link
Member

An SQL exists filters left on availability in right. Thus a semi join.

Before we did an inner join + drop-duplicates, which is incorrect.

This makes the Polars query 12% faster.

@ritchie46 ritchie46 merged commit 6c5bbe9 into main Jun 2, 2024
2 checks passed
@ritchie46 ritchie46 deleted the exist branch June 2, 2024 12:33
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.

1 participant