Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

this discussion makes me think of something too... so, i already have a simple size-related caching strategy implemented, it runs on a timer and trims down the database when it gets to a certain size and trims it back to a second size (high and low water marks)

it might be an interesting addition to the cache prune heuristic to selectively prefer to remove entries that have few inbound references, ie, the less engagement, AND the more stale (last accessed timestamp) combined would be a good heuristic for pruning not just stale events but irrelevant events, which are going to largely be botfarms

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

made some notes about this and another optimization i have got in mind after this chatter

https://github.com/Hubmakerlabs/replicatr/issues/38

https://github.com/Hubmakerlabs/replicatr/issues/39

#nostr is so awesome for free-wheeling discussions about nostr engineering

Reply to this note

Please Login to reply.

Discussion

No replies yet.