Very interesting concept! I really like the compact mode. After trying it out briefly, I have two questions:

- When I’m browsing a specific relay and click on “X other notes from the same user”, are those notes limited to the current relay?

- How many notes are fetched at once? I noticed some lag when using it in normal mode, so I’m wondering if there’s room for optimization. The feature is super cool and useful, but it does seem to require quite a lot of resources.

Reply to this note

Please Login to reply.

Discussion

I'd do it in two rounds. Open up streams for 3 seconds into a map. Aggregate by npub, count how many notes they published, filter out those over X times, refetch the rest for the remainder, with a 10-second timeout.

Or something like that. nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z this optimization needs math.

Ideas?

Or do the second fetch with a 100-event limit.

Since you've already filtered-out the frequent-posters, you can hard-limit the remainder without missing anything from anyone.

For most relays this approach works fine, but for some of the larger ones it’s a serious issue. For example, trying to aggregate all events from relay.damus.io over 24 hours. Even with smaller relays, if a user sets a 30-day time limit, you’ll run into the same performance and bandwidth problems.