Question · JavaScript and React course · Module 11: Data Fetching and APIs

Offset vs Cursor Pagination

What is the main difference between offset pagination (page/limit) and cursor pagination (cursor)?

Answer options

  • Offset pagination requires authorization, while cursor pagination is public
  • There is no difference - they are the same mechanisms
  • Cursor pagination only works with SQL databases, while offset works with NoSQL
  • Offset pagination uses a page number, while cursor pagination uses a pointer to the next element, which is more efficient for large datasets

You can check the correct answer by solving this task in the CodeWorlds game.