Paginate a Large List

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Your API endpoint for listing orders returns all two million orders at once and times out. Explain how you'd add pagination, comparing offset-based and cursor-based approaches, and which you'd pick.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →