News for hackers. Stuff that matters.
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.
Re:Soft deletion probably isn't worth it by remram on Tuesday July 19, 2022 @04:58PM (#32157886)
It seems Oracle does it although there is a special syntax to opt-in. That seems wild. I am not aware of another DBMS having that limitation though.