mikedilger / gossip

Gossip is a nostr client
Other
627 stars 74 forks source link

Inbox performance is sub-par (plus load-more is by date range, not count) #774

Closed mikedilger closed 2 weeks ago

mikedilger commented 3 weeks ago

We are indexing tags in a separate index, and it is not used to filter events in find_events_by_filter but instead from find_tagged_events which means we don't get ordering and we don't get to include other filters. If we could update storage to work more like pocket-db we could make this one interface and faster.

Also, if we do that, load more by 'count' would suddenly be accessible and usable by inbox too.

mikedilger commented 2 weeks ago

Load more on inbox is now by count, and uses the find_events_by_filter() which has been improved to filter by tags while maintaining a proper limit.