Comments (4)
atm you'll have to use the diff stream for that. we should def add a helper for that.
from hyperbee.
Diff is very efficient on large updates. Having a watch method that tells if you a prefix has changed makes sense as well
from hyperbee.
hypertrie also offers this as db.watch(..)
.
It uses feed.on('append',...)
, then checks seq
to see if it needs to emit an event.
@mafintosh I'm not familiar with diff stream, is there a reason to prefer that approach to the hypertrie one? 🤔
from hyperbee.
db.watch([range])
added: #81
from hyperbee.
Related Issues (20)
- Error in `createDiffStream` when using sub() HOT 6
- `createHistoryStream` on `sub` returns the history with empty keys HOT 3
- Connect Two Node Server
- return `Promise<{seq}>` from `put` calls
- Share batch between subs
- Values stored as keys when using sub of sub HOT 3
- Is it possible to have an on('update') event on subs? HOT 2
- History stream errors for encrypted hypercores HOT 6
- "dnshyper" - domain name service for hyperprotocol (concept)
- Bug: Encoding issue when loading hyperbee on browser HOT 5
- Real deletes? HOT 10
- Possible to create history stream on sub database? HOT 2
- Write/read access management, multi-master replicas
- issue with hyperbee.put HOT 2
- Update docs request HOT 1
- Hyperbee put with the same key HOT 2
- rw lock for batches HOT 13
- update() should accept options
- `Session is closed` timing issue in createDiffStream HOT 2
- Are the sparse cores working? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperbee.