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

Use subquery in hasVariant & hasProduct criteria to improve performance #3325

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Use subquery in hasVariant & hasProduct criteria to improve performance #3325

merged 2 commits into from
Nov 10, 2023

Conversation

boboldehampsink
Copy link
Contributor

Description

This change makes the hasVariant criteria apply a subquery instead of fetching and applying via PHP

@boboldehampsink boboldehampsink requested a review from a team as a code owner November 7, 2023 11:54
@boboldehampsink boboldehampsink changed the title Use subquery in hasVariant criteria to improve performance Use subquery in hasVariant & hasProduct criteria to improve performance Nov 7, 2023
@lukeholder
Copy link
Member

Thanks Bob, I am just checking with the team there was not a reason we didn't do this originally. Will merge once I confirm.

@lukeholder lukeholder self-requested a review November 8, 2023 06:03
@lukeholder lukeholder merged commit 877a045 into craftcms:develop Nov 10, 2023
8 checks passed
@lukeholder
Copy link
Member

lukeholder commented Nov 10, 2023

Thanks Bob! Will be in the next release.

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