What is Nostr?
Doug Hoyte /
npub1yxp…qud4
2023-05-05 17:41:38
in reply to nevent1q…3l3s

Doug Hoyte on Nostr: Hey guys, sorry for the delay! Just to clarify: You'd like it so a particular user ...

Hey guys, sorry for the delay!

Just to clarify: You'd like it so a particular user (authenticated in some way, maybe NIP-42?) can only access a subset of the keys in the DB?

I think that would be possible (assuming authentication is implemented of course). As Mike sas, it wouldn't be quite as easy as with SQL, where you could add a WHERE clause to all the required queries. However, I think you could do it in a way that wouldn't affect performance drastically.

If the sets of events for each user are mostly disjoint (not too many duplicated), then you could possibly run a strfry instance for each user. A running instance has a relatively low overhead, especially if you scale down the various thread counts.
Author Public Key
npub1yxprsscnjw2e6myxz73mmzvnqw5kvzd5ffjya9ecjypc5l0gvgksh8qud4