Skip to content

HHH-19668 Reduce size of collections held in ParameterInterpretationImpl before storing them in the cache #10670

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Jul 30, 2025

Instances of ParameterInterpretationImpl are being held in the interpretation cache for native queries. We had reports of these elements having a substantial impact on memory consumption.

A simple improvement is to ensure the collections being held on by the container object are minimized; some more substantial improvements could also be investigated but I’ll leave those for another time.

https://hibernate.atlassian.net/browse/HHH-19668

N.B.
I have decided to not include the test which I used to verify this patch as it's not strictly deterministic and of questionable value to be included in integration tests.
But for future reference, should someone want to play with it here it is:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


…mpl before storing them in the cache

Instances of ParameterInterpretationImpl are being held in the interpretation cache for native queries. We had reports of these elements having a substantial impact on memory consumption.

A simple improvement is to ensure the collections being held on by the container object are minimized; some more substantial improvements could also be investigated but I’ll leave those for another time.
@Sanne Sanne merged commit 80626c9 into hibernate:main Jul 30, 2025
26 checks passed
@Sanne Sanne deleted the HHH-19668 branch July 30, 2025 14:46
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