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

[5.7] Improve eager loading performance #26453

Merged
merged 1 commit into from Nov 9, 2018
Merged

[5.7] Improve eager loading performance #26453

merged 1 commit into from Nov 9, 2018

Conversation

staudenmeir
Copy link
Contributor

Follow-up to #26434: Adds whereInRaw() optimization to the other relationships.

What I missed in the first PR: We also have to check whether the relationship's local key is identical to the model's primary key. If it isn't, we can't rely on getKeyType() and so we can't use a raw query.

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.

None yet

2 participants