thor on Nostr: i think i finally figured out how to handle queries in my Nostr indexer. i run ...
i think i finally figured out how to handle queries in my Nostr indexer. i run queries on the relay pool when i encounter new pubkeys, and i've been running them on individual pubkeys to get info about them, and it was triggering the rate limiters, so what i do instead is toss any key i come across in a set that i then query the pool for and empty in batches.
Published at
2023-03-15 12:40:02Event JSON
{
"id": "e13b6a0738b6fda6fe9ebd1aeb3cb8fd71d738aa18dbed484d276518127eecda",
"pubkey": "c708943ea349519dcf56b2a5c138fd9ed064ad65ddecae6394eabd87a62f1770",
"created_at": 1678884002,
"kind": 1,
"tags": [],
"content": "i think i finally figured out how to handle queries in my Nostr indexer. i run queries on the relay pool when i encounter new pubkeys, and i've been running them on individual pubkeys to get info about them, and it was triggering the rate limiters, so what i do instead is toss any key i come across in a set that i then query the pool for and empty in batches.",
"sig": "4f5416f1ce15a6e07a89ad102eb6ad5c1caeea4755cc8579db006e60d20fd3079a7b848a729bbaec962c63ffc5b8cd68d3b192744f08b09c87cf8a1c5ebfb9a0"
}