How Pagination Improves API Performance #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I would argue that in an api spec, you should assume that acceptance criteria in a user story for enumerated rows of data should have pagination.
With that assumption, make a clarification with the product owner and explicitly put it into the requirements.
Saves headache having to fight the dev team later on, but you'll end up pagination the rest of the world anyway, might as well cement the api implementation guidelines

landanparker
Автор

Keyset pagination is better than offset paging. Albeit, offset might suffice for smaller schemas.

fifty-plus
Автор

Cursor based pagination is the better option if your doing this for performance on a large data set

justgame
Автор

for an api im using you need to request a response in order to get the next id for the next response, sucks I cant make it async

mannb
Автор

What's gonna happen if new data is added into the database while user fetching the data, i mean if user request page-1and just after that bunch of data is added into the database don't it return the repeated data on page-2 coz of new data if we use skip() ?

theannonymous