mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 06:24:21 +01:00
Fix memory hogging in MVCC scan cursor #1104 The current scan cursor loads all rowids at once, which blows up memory on big tables. Added BucketScanCursor that loads rowids in configurable batches - better memory usage while keeping decent performance. It's a drop-in replacement with the same interface. Also included LazyScanCursor as an alternative that fetches one rowid at a time, though it's less efficient due to log(n) skipmap lookups for each row. BucketScanCursor is the recommended approach for most use cases. WDYT? Closes #1178