Global Feed Post Login
Replying to Avatar jleger2023

What I'm proposing is that each relay store all of the reactions in a single event rather than a bunch of separate events so a client can make a single call and iterate through all of the reactions to tally them up. That's not different than what is done now except that it's not in a bunch of separate events that require the relay to scan its db for all of the reactions and the client to wait on receiving all of those separate reaction events rather than a single event with a single indexed key that's extremely efficient to lookup and send to the client.

ee
Nate Levin 3y ago

Lots of performance issues would be mitigated if relays were smarter, but this is probably one of the easiest to implement I would imagine. Does force clients to trust relays a whole lot more, so it’s probably something that won’t happen for a while

Reply to this note

Please Login to reply.

Discussion

No replies yet.