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

Reduce the retained memory when defining the relation readers #695

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

DangerDawson
Copy link
Contributor

Fixes: #694

Copy link
Member

@solnic solnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for working on this!

@solnic solnic merged commit 24405f8 into rom-rb:release-5.3 Aug 2, 2024
@solnic
Copy link
Member

solnic commented Aug 2, 2024

@DangerDawson seems like repository specs are now failing :/ looks like "Optimise the repository relations reader" is the culprit.

@DangerDawson
Copy link
Contributor Author

DangerDawson commented Aug 2, 2024 via email

@solnic
Copy link
Member

solnic commented Aug 3, 2024

Yeah that's what I suspected. We can have an after callback that clears the cache in RSpec.

@DangerDawson
Copy link
Contributor Author

This is probably not the most elegant way, maybe using dry configurable and having a callback reset the class attributes back to their defaults would be nicer. But I wanted provide a fix ASAP in order to get the branch green again:

#696

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.

Excessive memory use with many relations (>500)
2 participants