Skip to content

Comments

[5.x] No need to eagerload for product default variant attributes anymore#4237

Merged
lukeholder merged 2 commits into5.xfrom
luke/fix-4236
Feb 20, 2026
Merged

[5.x] No need to eagerload for product default variant attributes anymore#4237
lukeholder merged 2 commits into5.xfrom
luke/fix-4236

Conversation

@lukeholder
Copy link
Member

Description

Potential fix for #4236

Only eager load variants for the `variants` and `stock` table
attributes, which actually need them. Other variant-related
attributes (defaultPrice, defaultSku, etc.) are already fetched
via SQL JOINs in ProductQuery::beforePrepare().

Fixes #4236
@lukeholder lukeholder requested a review from a team as a code owner February 19, 2026 08:11
@lukeholder lukeholder changed the title No need to eagerload for product default variant attributes anymore [5.x] No need to eagerload for product default variant attributes anymore Feb 19, 2026
@lukeholder lukeholder merged commit 4366afb into 5.x Feb 20, 2026
14 checks passed
@lukeholder lukeholder deleted the luke/fix-4236 branch February 20, 2026 04:53
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.

1 participant