anarcanudos on Nostr: The best way to count reactions is to load all reactions that have my event related ...
The best way to count reactions is to load all reactions that have my event related in the tags? Right? But with that, if the event my user open has six thousand reactions, then six thousand events will be sent via websocket, right? I read about COUNT in discussions on github and saw that it was abandoned because it is not the best approach to compose totals. Is there a better recommended approach? Isn't there, for example, a way for the relay to return a list only with the id of the events that match the filter I requested? #asknostr
Published at
2024-12-08 09:54:39Event JSON
{
"id": "98fd18e1ad946eebdc11e66e3079f58394f28a0145be676bdc097e563c23b827",
"pubkey": "ff538df85b8d3e503f5b9f416a12cb5522f27e6edd247374964fc214c16cd309",
"created_at": 1733651679,
"kind": 1,
"tags": [
[
"t",
"asknostr"
]
],
"content": "The best way to count reactions is to load all reactions that have my event related in the tags? Right? But with that, if the event my user open has six thousand reactions, then six thousand events will be sent via websocket, right? I read about COUNT in discussions on github and saw that it was abandoned because it is not the best approach to compose totals. Is there a better recommended approach? Isn't there, for example, a way for the relay to return a list only with the id of the events that match the filter I requested? #asknostr",
"sig": "a93a6c9bbfb7129b23e4e30c1e98888bf4626e9878f17035588248c76c8331da5c2e628f450956640a1a1722b09d2c60024ad56ff0cb1650b664bbf86696b20d"
}