Clean Satellite At Transition

Deleting the dependent rows that exist only to serve a state at the exact transition that ends that state — rather than leaving them to a later bulk sweep — and why a foreign key cannot do this for you when only a flag changes. Reach for it when tables grow without bound and nothing ever deletes from them, when rows survive whose parent no longer justifies them, or when a bulk cleanup has to reason about rows whose parent has already been swept away.

maxrave-dev abdd85d 4.9 KB Updated

File contents

maxrave-dev/kotlin-footguns/tree/main/skills/clean-satellite-at-transition commit abdd85dba5

Frequently asked questions

npx skillmds@latest add maxrave-dev/clean-satellite-at-transition