What is Pagination?

Getting a long list in chunks (page 1, page 2…) instead of all at once.

Where Pagination goes wrong in real apps

Each of these is a short scenario built from a real failure in an app made with AI. Read the answer here, or walk through it yourself in about four minutes.

  • Data you can lose · 4 minutes · Pro

    Exactly 1,000 orders

    Your admin dashboard says you have 1,000 orders. It has said exactly 1,000 for three weeks.

    Why does my Supabase query return only 1000 rows?

    Supabase's API returns at most 1,000 rows per request by default, and it does not raise an error when it stops. Ask the database to count instead of downloading rows, and when you need every row, paginate with a stable order such as created_at then id.

    Read the fix
API
The part of an app that other programs talk to. Your app's pages ask its API for data, like a waiter taking orders to a kitchen.
Request
A message your browser (or any program) sends to a server asking for something: 'give me invoice 105' or 'save this profile'.
Server
A computer that runs your app's code out of sight. Users can't change what happens there, which is why checks belong there.
Browser
Chrome, Safari and friends. Everything that runs here is visible to, and changeable by, the person using it.
Database
Where your app keeps its data, organised in tables, like a set of spreadsheets.
Table, row, column
A table is like one spreadsheet (orders). Each row is one item (one order); each column is one detail (price, date).

All 62 terms in the glossary