Hacker News new | ask | show | jobs
by masklinn 151 days ago
Checking whether `deleted_at is null` should be extremely cheap, and it avoids the duplication and desynchronisation of having both “deleted” and “deleted_at”.
1 comments

Yes, if your database has null. I know this is about postgres, but a lot of stuff is nosql now.
Even in MongoDB, you can can index `null` values, so I don't understand in what database system this would be a problem.