mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set?No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description SeqScan paths aren't deterministic with large collections and caching. With Buffer caching, seqscans start in the middle and wrap around and change arbitrarily with every seqscan call. Our cursor implementation assumes increasing order of TIDs. Convert SeqScan to a TIDRangeScan with initial scan being >= (0,0) and subsequent calls with >= ContinuationTOken. This also allows for us to more efficiently skip pages on getmore calls making the overall calls faster.