Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
0.3
-
None
Description
Instead of doing a skip we can just use an item from the last page to augment the query. This would allow us not to scan through a set of docs and the fist N could be used; where N = page size. We already naturally sort by "CAS.ProductReceivedTime" so the idea is just to use the last page's last item and make sure we query for items greater than that. This should speed things up especially when hitting later pages.