Stopping the Heap Crash: Implementing Pagination in Hibernate
Learn how Hibernate's setFirstResult and setMaxResults prevent JVM heap exhaustion, and when to switch to keyset pagination for large datasets.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how Hibernate's setFirstResult and setMaxResults prevent JVM heap exhaustion, and when to switch to keyset pagination for large datasets.
Learn how Spring Data JPA's Slice interface removes the costly COUNT(*) query from pagination, speeding up large‑dataset access while preserving simple next‑page detection.
Learn how to diagnose and fix unstable result sets and performance lag when using Hibernate's setFirstResult and setMaxResults for database pagination.
Learn how to create a fully responsive page using Foundation’s XY Grid. The guide covers the desired outcome, prerequisites, markup steps, breakpoint checks, and recovery options if the layout breaks.
Raw Doubles don't know if they're meters or miles. Here's how Foundation's Measurement API moves unit safety into the type system, with a worked speed conversion and the trade-offs to consider.
Use Foundation 6 XY Grid with grid-x, grid-padding-x and cell size classes for responsive flexbox layouts. See the mechanism, limits, common mistakes and how to verify the grid in dev tools.
An architectural guide to implementing the Foundation XYZ Grid, covering minimal Flexbox configurations, trust boundaries, and failure modes for responsive layouts.
Foundation’s XY Grid uses flexbox containers and breakpoint‑prefixed cell classes to build responsive layouts without custom media queries. Includes a sidebar example and trade‑offs.
Offset pagination with setFirstResult and setMaxResults is convenient for shallow pages in Hibernate, but degrades with deep offsets and joins. This guide compares options and shows a safe validation pattern.