Code Room
Code reviewMedium
Question
Review this SQL-backed paginator used to export all orders. It loops, bumping OFFSET, until a page comes back empty.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
-- page N (0-indexed), page size 100SELECT id, customer_id, total, created_atFROM ordersWHERE status = 'shipped'ORDER BY created_atLIMIT 100 OFFSET :n * 100;Run or narrate your approach, then ask the coach.