Vlad Mihalcea

Keyset Pagination with Spring Data WindowIterator

2024-9-26

vladmihalcea

Introduction In this article, we are going to see how we can generate Keyset Pagination queries with the Spring Data WindowIterator utility. This is an alternative to the Blaze Persistence solution I documented in this article. Domain Model Considering we have the following PostComment entity that has both a createdOn and a monotonically increasing id: As I explained in this article, to create the Keyset Pagination queries, we are going to need the created_on and id columns since we need to apply the pagination on the time-sorted post_comment records. Streaming with the... Read More

The post Keyset Pagination with Spring Data WindowIterator appeared first on Vlad Mihalcea.