Memory pressure during pagination with collection join fetch in Hibernate ORM
Pagination Behavior with Join Fetching In Hibernate ORM, using setFirstResult() and setMaxResults() on a JPQL or HQL query that includes a JOIN FETCH on a collection can lead to unexpected memory consumption. While the final returned list adheres to the requested page size, the underlying execution may not push the limit constraints into the generated SQL. R