Avatar
Viktor Vsk
8a699686811889186df398c7253e8c4417ce73fe814edeae7ecd81dbde9536ac
Building #saltivka 🇺🇦 Nostr Friendly Relay (https://saltivka.org) Building #Knowstr — smart Nostr events aggregator (https://github.com/viktorvsk/knowstr) Working to enable people have more activities through the word of mouth between friends, friends of friends and more 🤝 with https://recar.io and https://valent.network

Can you imagine a (high school) party of 50 ppl where everything is managed by app and no responsible person?

It seems like it should be possible and pretty easy to achieve both:

- if one queries for a specific note, it shouldn’t depend on their amount

- if one queries for the events of last 3 months - it should use fast and small “latest 3 month events” index

- if one queries for older events or for not specified time range - it will be slower but still working

Or are you talking about some other use case?

Its not really clear which problem

it solves. For now it seems like its a very interesting stuff to work on ad an engineer in order to (prematurely) optimize non-existent problem

Is it comparable with, say, javascript redux? If yes what are the advantages?

Initially I was answering a message which claimed that nostrdb will help to avoid centralized servers, sorry if I somehow tagged you incorrectly :)

Sure, caching and improving UX is great and important. However I can’t see how storing events on device may scale to entire network

32GB would give you a lot of space to use most of the possible aspects of social media with your friends in family

How in this case could we have this discussion with you where everyone knows nothing about each other and not even follows each other?

You can. And it will probably dramatically improve UX. However I don’t see how could it eliminate centralized services (servers)

However you decide to limit that data it will either be for a short period (i.e. last 48 hours) or in audience (i.e. your friends or coworkers)

Its not feasible to hold entire “global discourse” even in terms of kind1 events on a single device today

Maybe some very complex and smart algorithm created to share data directly between devices will do the thing but I’m not sure anyone even thinks about it at this point

Each nostr event minim size is 98 bites due to sig and id, means the super maximum number of events per gigabyte is 10 millions

Currently though I have 11 millions of events that need at least 7.8GB on practice

How do you expect nostrdb to replace centralized servers? By storing hundreds of gigabytes on user devices or limiting them somehow dramatically and implementing complex (p2p?) sharing between devices?

A discussion about Elon Musk was the motivation for my comment. Someone was disparaging his desire to fix everyting:

https://www.youtube.com/watch?v=RzCj4656AF8

and my thoughts ran the other way... that he shouldn't be disparaged for that, rather it is one of his traits that we should admire.

And what is funny here, he doesn’t want to fix anything nor he is actually fixing anything