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

Closed
opened 2024-06-08 12:43:23 +12:00 by mikedilger · 1 comment
mikedilger commented 2024-06-08 12:43:23 +12:00 (Migrated from github.com)

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.

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 2024-06-15 11:09:33 +12:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#774
No description provided.