Files
documentdb/pg_helio_api
Vinod Sridharan a9ce9d1c81 Merged PR 1348551: Cursor fixes: Fix non-determinism of SeqScan
### 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.
2024-05-13 13:23:03 +03:00
..