Preventing JVM Heap Exhaustion with Vaadin Grid Lazy Loading
Stop loading entire datasets into JVM memory. Learn how to use Vaadin's CallbackDataProvider to implement server-side pagination and prevent OutOfMemoryErrors in large Grids.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop loading entire datasets into JVM memory. Learn how to use Vaadin's CallbackDataProvider to implement server-side pagination and prevent OutOfMemoryErrors in large Grids.
JPA offset pagination works for bounded admin pages but degrades on deep feeds. Learn when to use setFirstResult, when to switch to keyset pagination, and how to verify the generated SQL.
Learn how to implement a Vaadin Grid DataProvider that fetches only the rows needed for the current view, backed by a Spring Data Pageable repository, to keep UI responsive with large datasets.
Spring Data JPA offers Page<T> and Slice<T> for pagination. This post explains the SQL differences, performance trade‑offs, and how to pick the right option for large tables and infinite‑scroll UIs.