3 ms·
Pagination in API's are a PITA as you have to make many requests to get all the data. 99% of the time you want all data, not just the first page. For the 1% use
by z3t4 4y ago
Pagination in API's are a PITA as you have to make many requests to get all the data. 99% of the time you want all data, not just the first page. For the 1% use case you could use http-range or page. Pagination is often implemented as an premature optimization.
- russellendicott 4y agoIn my experience the only reason you would want all the data is if the API lacks good filter queries. IMO, making it a PITA to download all data is kind of a feature.
- crescentfresh 4y ago> Pagination is often implemented as an premature optimization. or for forwards-compatibility.
- indymike 4y ago8 minutes of wire time is bad and pagination is usually part of server side frameworks...
- cortesoft 4y ago> 99% of the time you want all data, not just the first page. This certainly doesn’t seem to be the case. Take viewing this very website, for example… are you suggesting that most people want to see all posts of all time, rather than just the first page or two? Paging is used extensively for feeds, and feeds are crazy common these days, and people rarely want to see all posts ever on a feed.