Andrea Boriero (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15852 (
https://hibernate.atlassian.net/browse/HHH-15852?atlOrigin=eyJpIjoiNTRlMG...
)
Re: For pageable query with collection join fetches the all found entities are loaded to
memory not just entities for the requested page - it could lead to OutOfMemoryError in
some cases. (
https://hibernate.atlassian.net/browse/HHH-15852?atlOrigin=eyJpIjoiNTRlMG...
)
Hi Jakub Radlica (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) as explained at the end of the User Guide Limits and offsets (
https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibern...
) paragraph
When limits or pagination are combined with a fetch join, Hibernate must
retrieve all matching results from the database and apply the limit in
memory !
(
https://hibernate.atlassian.net/browse/HHH-15852#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15852#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100213- sha1:1fa7b87 )