Skip to content

Sparse read streams#56

Draft
danielchrist0pher wants to merge 3 commits into
mainfrom
local-read-stream
Draft

Sparse read streams#56
danielchrist0pher wants to merge 3 commits into
mainfrom
local-read-stream

Conversation

@danielchrist0pher

@danielchrist0pher danielchrist0pher commented Jun 26, 2026

Copy link
Copy Markdown
Member

API

  • createReadStream({ localOnly })

Options

  • localOnly: false - may block on download (wait: true)
  • localOnly: true - wait and prefetch are disabled. Iterate local entries, skip missing keys/blocks

Cache

Currently should manually clear the cache between localOnly and normal streams to avoid missing blocks ( ex - if subtrees are cached as null during a local only stream, this could cause gaps in a normal read stream )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant