Skip to content

Avoid unnecessary join for entity comparisons in with clause #2078

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

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Mar 20, 2019

Hql queries like:
from Parent p inner join Child c with c.Parent = p
Currently lead to unnecessary join for c.Parent in SQL. Issue is not entity join specific and can be reproduced for fetch joins also.

@bahusoid
Copy link
Member Author

Accidentally stumbled upon hibernate fix for this issue: hibernate/hibernate-orm@17b8d2e
Hmm.. Different approach...

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

Successfully merging this pull request may close these issues.

2 participants