What is Nostr?
Vitor Pamplona
npub1gcx…nj5z
2024-09-27 22:59:04
in reply to nevent1q…lt78

Vitor Pamplona on Nostr: My main pain is event lifecycle management. In summary, the database gets too big too ...

My main pain is event lifecycle management. In summary, the database gets too big too fast and start getting slow. So, the app must rotate event database, even in disk, very quickly.

We need to find an abstraction where the UI tells the core when it's ok to delete stuff.

For instance, let's say the user has a Global feed for about 30 minutes and then leaves back to the regular follows feed. Most of the Global feed notes should be deleted.

Save when the person visits a profile. The app loads a bunch of stuff into the database, but those events are irrelevant later and should be deleted.

If you are doing a client that shows the latest note for each custom feed you have, like the list of people and latest messages of a chat client, you are loading and deleting stuff all the time.
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z