adamwynne/flockdb — comment on commit 6603ae0ae93401f6934434b2e25e5c650146d8b4
File:  line 0
By adamwynne:

consider a case where 1 follows (range 1 10000) and 2 follows (2 9999)
the difference should yield [1 10000], but in the old code, it would just yield [10000], as the query would end prematurely in the (newPage.size == 0) condition.

In my test config, the max page size was 4000 (which would yield an identical page 2 for both queries, thereby terminating it early with the page.filter eliminating all the values in newPage).