-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do client need to replicate whole gbs of db ? #75
Comments
Good question, @yashwanth2804. Let's make sure to add an answer to the docs when someone provides one. |
I don't believe there is currently a way to limit replication. You may want to explore modeling your data differently (on Generally speaking, when modeling data for OrbitDB you should strive to "partition" it where it makes sense - i.e. along access rights. As an example, in a twitter-like application, each user should have their own database instead of a global "tweets" database for everyone. |
thanks for the reply, please correct me if i am off the topic or missing something. |
If you have the tweets locally - you can limit how many entries are loaded by sending in an const db = await orbitdb.feed("<justin's tweet OrbitDB address>")
await db.load(10)
// db now contains the 10 latest entries/tweets If you don't have the data locally, I'm not sure there's a way to limit syncing to only the 10 latest entries. |
If you can't limit how many data you can replicate, it means that malicious peers could trick you to "follow" them, then just flood you with data. Which might be a huge problem in 99% of the use cases. |
Moving to Field Manual to discuss further |
does replicating bulk dbs resources and time consuming, anyway can we limit upto few records
thanks
The text was updated successfully, but these errors were encountered: