Re:Soft deletion probably isn't worth it
by nightpool on Tuesday July 19, 2022 @07:09PM
(#32159173)
And now your view is based on an unstable function, so it's impossible to write partial indexes for (very important for performance!) and impossible to use foreign keys with. Just add a check constraint that deleted at is never in the future and move on with your life. If you really, really need to schedule a delete, make it its own concern (UserVersions table with applicable_at?), don't mix it with your soft delete logic.
[ Parent
| on HN ]
There are no comments on this comment yet.