hypercore-protocol / p2p-indexing-and-search

Getting started with P2P indexing and search using the Hypercore Protocol
MIT License
82 stars 16 forks source link

Queries: Are they one-time results, or continuous sync streams #1

Open KrishnaPG opened 3 years ago

KrishnaPG commented 3 years ago

Thank you for taking time to present these easy-to-understand walk-throughs. They are very helpful.

The HyperBee queries, I am trying to understand if they work more like a

To illustrate what I mean, say you have database of numbers 1 to 10. Then you make a query for the even numbers from that core/db.

Typically, underneath these numbers/blocks are downloaded locally (partial sync).

Now, you append few more numbers to the remote database 11 to 20, say. Then what happens?

If filtered partial sync stream is the way it works, then it is indeed a very powerful feature, since essentially it is providing a selective view of the database with continuous change log