Re:Soft deletion probably isn't worth it
by SoftTalker on Tuesday July 19, 2022 @03:56PM
(#32157084)
A problem (unless something has changed, my context is Oracle from some time ago) is that NULL values are not indexed. So the "WHERE deleted_at IS NULL" could trigger a full table scan. It can also cause row migration when the NULL value is eventually filled in. Unless you explicitly need the deleted date, it's probably better to use a non-nullable Y/N for this.
[ Parent
| on HN ]