How would you implement pagination for a large dataset?

Technical