mikedilger on Nostr: I could pass into the filtering script the age of the pubkey in the local database, ...
I could pass into the filtering script the age of the pubkey in the local database, or the number of events you have from them. Either one would allow the script to notice this is a new pubkey and then your filter code can be more aggressive.
I should also pass into the script the phase of filtering (incoming? displaying thread replies?)
More work tbd I see.
Published at
2024-09-10 23:08:45Event JSON
{
"id": "5713beaf64dff4ccba8d8ec6687b3e8e0b2d58889502fef03b6e90721d21d1d3",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1726009725,
"kind": 1,
"tags": [
[
"p",
"5e5fc1434c928bcdcba6f801859d5238341093291980fd36e33b7416393d5a2c"
],
[
"e",
"8f51e9d4523e6bbc137f5ee32dac48f3a3c1a39adc302d8b36f9275092455337",
"wss://bostr.lecturify.net/",
"root"
],
[
"e",
"883cc4c9f9b9a3cc86a33caf45ca417a938fe68a92f1a3e7a268692d1177a159",
"wss://wot.utxo.one/",
"reply"
]
],
"content": "I could pass into the filtering script the age of the pubkey in the local database, or the number of events you have from them. Either one would allow the script to notice this is a new pubkey and then your filter code can be more aggressive.\n\nI should also pass into the script the phase of filtering (incoming? displaying thread replies?)\n\nMore work tbd I see.",
"sig": "8db46184223a0161b7c02f61d2bde55c2afb863a68a73d02a749ee3b15dd4de0d5bede2155842834551e5fd5c6f3e8eea8209bfbbfca2d28d63ed8368b12b4d7"
}