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

Remove memory leak in ingredients migrator #2493

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jun 19, 2023

What is this pull request for?

By using find_each instead of map and by eager loading each element individually we reduce the memory usage and prevent it from leaking.

Checklist

Sorry, something went wrong.

@tvdeyen tvdeyen requested a review from a team June 19, 2023 08:09
@tvdeyen tvdeyen force-pushed the 6.1-reduce-ingredients_migrator-memory branch from 75bccb5 to bb78f69 Compare June 19, 2023 09:33
@tvdeyen
Copy link
Member Author

tvdeyen commented Jun 21, 2023

Specs fixed in #2495

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tvdeyen Thomas von Deyen
By using each instead of map an by eager loading each
element individually we reduce the memory usage and
prevent it from leaking.
@tvdeyen tvdeyen force-pushed the 6.1-reduce-ingredients_migrator-memory branch from bb78f69 to 360613c Compare June 21, 2023 20:48
@tvdeyen tvdeyen merged commit afba7e2 into AlchemyCMS:6.1-stable Jun 22, 2023
@tvdeyen tvdeyen deleted the 6.1-reduce-ingredients_migrator-memory branch June 22, 2023 08:08
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