Skip to content

Use the LHS key values for inner join #25170

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

Open
kaikalur opened this issue May 21, 2025 · 0 comments · May be fixed by #25172
Open

Use the LHS key values for inner join #25170

kaikalur opened this issue May 21, 2025 · 0 comments · May be fixed by #25172

Comments

@kaikalur
Copy link
Contributor

When we do things like:

SELECT t2.id, t1.val from T1 JOIN T2 ON t1.id=t2.id

looks like using t1.id instead makes it use lot less memory as the page from lhs is left undisturbed. We have seen local OOMs with this kind of construcs.

But if you change it to the equivalent:

SELECT t1.id, t1.val from T1 JOIN T2 ON t1.id=t2.id

it works a lot better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Unprioritized
Status: 🆕 Unprioritized
Development

Successfully merging a pull request may close this issue.

2 participants