You can fix that on the relay side by just having a small debounced call that accumulates a bunch of received [EVENT, {...}] into a single SQL statement.
This is nicer and much easier than trying to get everybody to implement a new verb.
You can fix that on the relay side by just having a small debounced call that accumulates a bunch of received [EVENT, {...}] into a single SQL statement.
This is nicer and much easier than trying to get everybody to implement a new verb.
The debounced way is also ok. But the NIP would be better to state that relay can implement this method and this method is optional.
But the batch way is also optional and need to stated. And it is a way easier to implement.
These two method also can handle hundreds events. I can't find that whick one is better.