pagination

Splitting a large collection into bounded pages, each with a way to ask for the next one.

In more detail

Every collection response needs a default and a maximum page size, so no request can return a whole table at once. The two common styles are offset pagination, which skips a count of items, and cursor or keyset pagination, which continues after the last item the reader saw. Each page must come from a stable sort on a unique key, or pages can overlap or skip items.

Examples

In the APIs course: The course contract suite walks every page and fails if any task appears twice or goes missing.
Spring Data: Pageable and Page parameters on repository methods.
Page size is caller input with a bound: the course caps a request for a million rows at one hundred.

Related terms

Taught in

References