liveBook · Manning

Pagination

As explained in Build Financial Software with Generative AI (From Scratch)

Pagination is the technique of dividing a large result set into smaller portions that can be requested and displayed separately.

Pagination divides a large result set into smaller portions that an API can request and a user interface can display separately. It becomes important when returning thousands of records would increase waiting time and make the interface difficult to use. section 4.3

A practical pagination design addresses two related concerns:

  • Scale API responses for large datasets instead of returning every record in one request. section 4.1
  • Let the API request portions of the data, even when the user interface already supports dividing a large dataset. section 4.3
  • Treat pagination as part of a production-ready API alongside asynchronous processing and acceptable request wait times. section 4.1 section 4.3

ACH records

An ACH-processing API might contain thousands of records. Returning them all at once can delay the response and overwhelm the interface; pagination lets the client request and display a smaller portion at a time. section 4.3

How Build Financial Software with Generative AI (From Scratch) covers it

How deep it goes
Explains the motivation and API role, but stops before specifying paging parameters or data-store mechanics.
Examples
Uses thousands of ACH records and difficult user-interface presentation as the motivating example.
What it assumes
Builds from basic FastAPI GET endpoints and API concerns without requiring a database initially.
What you can do after
Apply pagination through a FastAPI endpoint that serves portions of a large result set.
How it connects
Connects pagination to APIs, FastAPI, asynchronous processing, and performance and scaling.

Also explained in

Compare how 11 books explain pagination →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Financial Software with Generative AI (From Scratch). The section links point to the parts of the book it draws on.