What is Nostr?
Vitor Pamplona
npub1gcx…nj5z
2023-09-26 22:38:00

Vitor Pamplona on Nostr: Should each account on Amethyst have it's own database of Nostr events? Or should we ...

Should each account on Amethyst have it's own database of Nostr events? Or should we have just one DB with everything for all logged-in accounts?

Having one DB for each account enables us to save decrypted content that should only be seen by that account, speeding up the visualization of that encrypted content (like chat messages). However, it also massively duplicates content if both accounts are seeing similar things on public feeds.

Maybe we need a dual-layer database approach. One layer to store everything as it came from relays and a second layer with one database per account to store things in a decrypted fashion 🤔.

Thanks for helping me out.
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z