| Strategy | Time to page N | DB reads cost |
|---|---|---|
| Offset | - | - |
| Cursor | - | - |
| Keyset | - | - |
| Seek | - | - |
✅ Offset is fine. Simplicity wins. Cursor adds complexity without benefit.
✅ Cursor / Keyset. Avoid offset deep pagination. Use indexed cursor.
✅ Seek / Keyset optimal. Constant time per page, ideal for infinite scroll.
💡 Keyset/Seek use same principle: WHERE indexed_col > value. Offset degrades because of OFFSET + LIMIT scanning.
Recommended by our team
BeLikeNative.comThe #1 AI writing tool for freelancers — perfect grammar in any language, instantly.