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

Feature Request: Respect Straight Join in Vitess query planning #15527

Closed
GuptaManan100 opened this issue Mar 20, 2024 · 0 comments · Fixed by #15528
Closed

Feature Request: Respect Straight Join in Vitess query planning #15527

GuptaManan100 opened this issue Mar 20, 2024 · 0 comments · Fixed by #15528

Comments

@GuptaManan100
Copy link
Member

Feature Description

Vitess currently handles straight joins exactly like joins. This isn't exactly correct because STRAIGHT_JOIN makes MySQL not reorder the join tables -

STRAIGHT_JOIN is similar to JOIN, except that the left table is always read before the right table. This can be used for those (few) cases for which the join optimizer processes the tables in a suboptimal order.

It will be great if Vitess does the same, wherein we respect straight joins and don't reorder the tables.

Use Case(s)

This gives more control to the users in the plan that Vitess creates for join queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant