mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
releasing a pear, readme iterate, howtos
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
### Hyperbee: Sharing Append-Only Databases
|
||||
### How to share Append-Only Databases with Hyperbee
|
||||
|
||||
Get setup by creating a project folder and installing dependencies:
|
||||
|
||||
```bash
|
||||
@@ -85,7 +86,7 @@ async function loadDictionary() {
|
||||
```
|
||||
|
||||
|
||||
`bee-reader.js` creates a Corestore instance and replicates it using the Hyperswarm instance to the same topic as the above file. On every word entered in the command line, it will download the respective data to the local Hyperbee instance.
|
||||
`bee-reader.js` creates a Corestore instance and replicates it using the Hyperswarm instance to the same topic as `writer.js`. On every word entered in the command line, it will download the respective data to the local Hyperbee instance.
|
||||
|
||||
Try looking at disk space the `reader-storage` directory is using after each query. notice that it's significantly smaller than `writer-storage`! This is because Hyperbee only downloads the Hypercore blocks it needs to satisfy each query, a feature we call **sparse downloading.**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user