diff options
author | karissa <krmckelv@gmail.com> | 2017-02-17 15:40:31 -0800 |
---|---|---|
committer | karissa <krmckelv@gmail.com> | 2017-02-17 15:40:31 -0800 |
commit | 5530e1e98d1ee5722f94f4030f926d65e856fcc2 (patch) | |
tree | 9c9394176539ae5fa85118f94554afe87e4a691a /docs | |
parent | c2a667ff5949048377504fe090fca3a35ed60a33 (diff) | |
download | dat-docs-5530e1e98d1ee5722f94f4030f926d65e856fcc2.tar.gz dat-docs-5530e1e98d1ee5722f94f4030f926d65e856fcc2.zip |
move question about index to udner the hood
Diffstat (limited to 'docs')
-rw-r--r-- | docs/faq.md | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/docs/faq.md b/docs/faq.md index e23d441..3f84033 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -64,17 +64,6 @@ Only someone with the key can download data for Dat. It is the responsibility of Dat uses the concept of a [Merkle tree](https://en.wikipedia.org/wiki/Merkle_tree) to make sure content is not tampered with. When content is added to a Dat we cryptographically fingerprint it and add it to the tree. On download, we can use the tree to make sure the content has not changed and the parent hashes match. -### What if I don't want to download all the data? Does dat have an index? - -Yes, you can tell Dat to only download the data you want using our Node.js API. You can do this by using `sparse` mode in `dat-node`, which make it only download content that the peer asks for. To do this, simply pass `{sparse: true}` when you create the dat (or hyperdrive): - -```js -var Dat = require('dat-node') -Dat(dir, {sparse: true}, function (dat) { - console.log('got the dat!') -}) -``` - ### How does Dat help to improve transparency? Dat uses an append-only to track changes over time. An append-only log shows all of the changes for a given Dat since it was shared. We use this for version control but it can also bolster transparency for a dataset. Any changes to a dataset will be tracked and you can see what changed and when. @@ -91,6 +80,18 @@ As a peer to peer network, Dat faces similar privacy risks as Bittorrent. When y Dat uses hyperdrive and a variety of other modules. Hyperdrive and Dat are compatible with each other but hyperdrive is able to make lower-level decisions. Dat presents a user-friendly interface and ecosystem for scientists, researchers, and data analysts. +### What if I don't want to download all the data? Does dat have an index? + +Yes, you can tell Dat to only download the data you want using our Node.js API. You can do this by using `sparse` mode in `dat-node`, which make it only download content that the peer asks for. To do this, simply pass `{sparse: true}` when you create the dat (or hyperdrive): + +```js +var Dat = require('dat-node') +Dat(dir, {sparse: true}, function (dat) { + console.log('got the dat!') +}) +``` + + ### Does Dat use WebRTC? Dat can use WebRTC but it's very experimental. You can check out our tutorial on using [Dat in the browser here](/browser) |