mafintosh / mafintosh/hyperdb

opts.live for createHistoryStream

Open
#92 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
748
Forks
56
PR merge metrics
No merged PRs in 30d

Description

I can sort of get a live stream of log records by listening for the 'append' event on the db, but it would be nice to have an `opts.live` option to createHistoryStream()`. This option would pair well with passing in a sequence number to do ranges which is sort of what #51 suggests.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the createHistoryStream() entry point and inspect how the database emits its 'append' event and how sequence numbers are handled. Determine the expected interaction between opts.live and sequence ranges; done means a live history stream can follow new records while respecting the requested starting sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.