Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"only 1 entry is allowed not to have the data, all others must be unique" makes sense in larger schemas as the database grows. It replaces is_default_address, is_primary_child etc. fields and constraints on relational tables. In the perfect world all the data would be normalized not to have such columns and cases, but in real life it just grows that way. So for some cases NULLS NOT DISTINCT will be a welcome addition.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: