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

Move null value check outside loop #10

Merged

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Mar 11, 2022

When reviewing this module for suitability and quality, I noticed a performance issue in the eav:attributes:restore-use-default-value command. When dealing with small databases, this inefficiency does not cost significantly; however, when working with large databases, this is causing significant delay within each loop iteration. This pull request resolves this inefficiency, allowing the command to run more quickly on all database sizes.

I recommend reviewing this with 'ignore white-space' enabled. I have tested this on Magento v2.4.3-p1.

@peterjaap peterjaap merged commit 19047da into magento-hackathon:main Mar 11, 2022
@peterjaap
Copy link
Contributor

LGTM, thx!

@fredden fredden deleted the performance/query-outside-loop branch March 11, 2022 10:41
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