Spring Data JPA Pagination and Sorting: Page vs Slice vs Keyset Scrolling (Window API)
Spring Data JPA pagination tested on Spring Boot 4.1.2 and Hibernate 7.4: what Page, Slice and List cost in SQL, why deep offset pages get slow and drift, keyset scrolling with the Window API, a scroll-position trap, collection-fetch paging by Hibernate version, and the REST JSON shapes.