What is Nostr?
Franco (Castamatic) /
npub1axu…zjl7
2023-07-17 13:33:31
in reply to nevent1q…790f

Franco (Castamatic) on Nostr: npub1ln5q8…5xyw6 I would just turn the records for removed episodes in tombstones. ...

npub1ln5q8np5aezhtt7ztv6tah86xk4t3smjuchdvxp0u6uta056204q45xyw6 (npub1ln5…xyw6) I would just turn the records for removed episodes in tombstones. Add a bool field “removed” to the episode table. The field defaults to false at record creation, and is turned to true when the episode is no more in the feed. All other APIs should filter for episode.removed == false.

As a bonus once a week you can purge all episodes where removed == true in one pass to free db space.
Author Public Key
npub1axu0t2tm3y8c5n0wuakepwggcz7sgadpw5c060azlfp4tchd9u0qejzjl7