We first need to address the performance issue, right now this mode becomes very laggy when browsing relays with lots of content or when a longer time limit is set. Since it loads all notes within the time window, it can even trigger the relayβs rate limiting. I think we may need to remove the time limit and instead load a few hundred notes at a time and group them.
Login to reply
Replies (3)
Time is the essential factor, tho. It's a time-span group, rather than a continuous timeline.
Just query them all in parallel and populate the map, as the results come in, with a 30-second timeout.
I also thought this initially, but actually the time-span group is browsed in sequential chunks, so we can lazy loading them.
The only cons of this i approach seems that you cannot have the real total count for every user of all the published events.