8000 Optimize Metadata Discovery ("People") · Issue #21 · nostria-app/nostria · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Optimize Metadata Discovery ("People") #21
Open
@sondreb

Description

@sondreb

Here are a few notes on how we should optimize the Metadata Discovery:

  1. Batch up pubkeys to query the Discovery Relay.
  2. Fallback procedures for missing Relay Lists, first kind 3, then query User Relays for kind 10002 and 3 at the same time. Right now we query first 10002, then kind 3, during the fallback. It will be more optimized to simply query for both in fallback.
  3. Batch up metadata (profile) queries: Instead of performing multiple connect and disconnects during the discovery process, we should keep the connections open during the processing. Perhaps we can even reuse the same pool for this, as it doesn't really matter if a user's profile is retrieve from a non User Relay, even though it's preferred to get it from correct relay. When viewing the user's profile, it always get from user's relays.

This should improve and fix #20

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0