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

Added IN to indexes #481

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Added IN to indexes #481

merged 1 commit into from
Jul 8, 2024

Conversation

Hydrocharged
Copy link
Collaborator

select_random_points is performing slower than expected, and this is due to IN not using indexes. This just adds IN to the index logic, so that select_random_points will now actually use indexes. This logic does not properly reflect how PostgreSQL should really behave, but currently none of the index logic behaves properly due to GMS requiring exact type matches, rather than relying on comparison operators, so there's no additional harm in adding this.

No new tests are added, as we already have pre-existing tests for IN using indexes. They just didn't actually use the index, but still returned the correct result, and now they're using the index as well.

@Hydrocharged Hydrocharged requested a review from zachmu July 8, 2024 11:09
@Hydrocharged Hydrocharged enabled auto-merge July 8, 2024 11:15
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@Hydrocharged Hydrocharged merged commit 56c6338 into main Jul 8, 2024
12 checks passed
@Hydrocharged Hydrocharged deleted the daylon/small-sysbench-fix branch July 8, 2024 16:24
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.

2 participants