Why Nostr? What is Njump?
2023-03-16 01:58:54

Lorewegian 📚 on Nostr: #[0]

my Nostr indexer runs queries to look up profiles, contact lists and relay lists it doesn't have. normally, a contact list also contains a relay list, but this is non-standard, so that's 3 objects in total.

to speed things up and avoid hitting relay rate limits, i collect pubkeys to query in batches of 70. but that third object - the relay list - is very rare, so i end up running a lot of useless queries. the volume of queries would be a lot smaller if i just ignored it.

it doesn't break anything but it feels a bit wasteful of resources.

i suppose what i could do is keep a list - per connected relay - of objects i have already requested in that session. after all, if the object does appear later on, i should expect the relay to announce that, so it doesn't need further querying.
Author Public Key
npub1dsr8aceet06f6g2sgdyajh6lla0d7s0vvj4gj5fnf6yfmwhcuv0sdce3jc