jb55's avatar
jb55 _@jb55.com 4 months ago
I avoid all the complexity by simply dumping all results into nostrdb. Then the entire app becomes a single relay subscription from the point view of the ui. A relay that loads instantly and offline.

Replies (2)

Yes, this is what I did with Ditto and it's a very good system. You essentially build a relay into your client. You have to be committed to making it perfect though, or it will be a huge crux.​
jb55's avatar
jb55 _@jb55.com 4 months ago
it's lmdb + custom flatbuffer-style note format. notes are aggressively de-duped in the multithreaded ingester (it can detect a duplicate not before even parsing the whole json note) so its super battery efficient. zero copy goodness