Global Feed Post Login
Replying to Avatar Vitor Pamplona

Nostr Database strategies:

1. Build indexes for every possible combination of filters: It's fast, but needs a ton (GBs) of memory and 10x your database size in disk. Works great for servers.

2. Don't index all tags: Some filters just won't work and it won't find stuff, but it is fast and memory/disk efficient. Works great for small apps that have known filter needs.

3. Delete events as soon as the app doesn't need them anymore: It's fast and memory/disk efficient, but search sucks and figuring out what can be deleted is a major hassle.

Did I miss anything?

32
Freddie 15h ago

Using a noSQL database?

Reply to this note

Please Login to reply.

Discussion

No replies yet.