franzap on Nostr: Clarification: I'm sending a REQ with a `#d` set of app IDs to check for updates. But ...
Clarification: I'm sending a REQ with a `#d` set of app IDs to check for updates.
But I can't include one `since` for each app ID in one query, so I have two options:
- use the oldest `created_at` of the app ID set - but if one of the apps is quite old, I reap almost no caching benefit
- send one filter per app - this would work well, but I could have potentially 100s of apps to check which translates into 100s of backend requests for one check
If the relay sent a timestamp, I could use that as the `since` for the next request. The only drawback is it wouldn't catch any back-dated apps, but that is uncommon.
Published at
2024-10-16 23:12:53Event JSON
{
"id": "eb91dd13ad547a454801bf55eaf951c1164548f9148da3725c80b83a87abbc91",
"pubkey": "726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"created_at": 1729120373,
"kind": 1,
"tags": [
[
"t",
"d"
],
[
"e",
"17415862d2820bfa069438476b1ba048fcfe991687615aa31eae5693873908e0",
"wss://relay.damus.io/",
"root"
],
[
"e",
"ba6bde8bfc0bf09bb472561d578f2e474995a17ee867cf52ba4e423529bdaf94",
"wss://relay.damus.io/",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"",
"mention"
]
],
"content": "Clarification: I'm sending a REQ with a `#d` set of app IDs to check for updates.\n\nBut I can't include one `since` for each app ID in one query, so I have two options: \n - use the oldest `created_at` of the app ID set - but if one of the apps is quite old, I reap almost no caching benefit\n - send one filter per app - this would work well, but I could have potentially 100s of apps to check which translates into 100s of backend requests for one check\n\nIf the relay sent a timestamp, I could use that as the `since` for the next request. The only drawback is it wouldn't catch any back-dated apps, but that is uncommon.",
"sig": "507b4633934f5481483f779e6555d0f302a2355f7b04bd6c2f8a91755468163e94176c7702d93bab2f47352e8d888641f005c713e2d784ca0a22ffdf1072c2ed"
}