DEV Community

Discussion on: Pagination in an API: page number vs start index

Collapse
 
sudiukil profile image
Quentin Sonrel

For now I'd say it's not relevant because it's actually not dates but datetimes (including seconds), so most entities should have a unique datetime, so remainders after applying the limit are quite unlikely to happen. This API is still in early stages of development and is not fully tested so I might have missed some issues though 😅

Thread Thread
 
joaofbantunes profile image
João Antunes • Edited

Got it, so you could just use the datetime of the last one, and get the rest from there 👍

Thread Thread
 
sudiukil profile image
Quentin Sonrel

Exactly :)