Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
/ level-js Public archive
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Add a cache to Iterator #63

@vweevers

Description

@vweevers

From #60 (comment):

Iterators should by default keep reading from the underlying IDB cursor, to fulfill the snapshot guarantee

  • Have the IDB cursor fill a cache (similar to how leveldown works with highWaterMark)
  • Have Iterator.prototype._next() read from the cache.

This cleanly separates the two mechanisms (IDB pushes, Iterator pulls).

Metadata

Metadata

Assignees

Labels

upgrade guideImprovements or additions to upgrade guide(s)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions