Databases & Backend
Six Lines of Code to Soft-Delete Postgres Rows and Reclaim That Precious URL Slug
Imagine archiving a blog post, only for the next one with the same title to bomb on insert. One dev's dead-simple fix: rename the slug on archive. No partial indexes, no drama.