(no title)
tordek | 11 years ago
The simplest case involving items is clearly `items=10-20`, but that has its own set of problems (your set must be ordered; I assume you'd use the key you're sorting over as your `ranges-unit`).
The place where this solution seems less than ideal is when you want to start from an id, but get a certain number of items. That is, the "infinite scroll" use case: If you simply do "sort by date, discard 10, return next 10 items", then you have a race condition where you do your first request, a second agent adds a new item, and you do your second request: the last item from the previous page is now the first item from the current page.
So, ideally, I want to request: "Ordered by date, where id > <last-id>, 10 items".
If you're strict about the definitions of `Range`, this doesn't seem possible.
Maybe the best way to do this would be `Range: items=decacfb98eface89+10` or similar?
tordek|11 years ago