zlacker

[parent] [thread] 4 comments
1. 0cf861+(OP)[view] [source] 2024-08-24 16:46:40
>… People had to use `char(1)` columns with CHECK constraints to store '0'/'1' - or worse: 'T'/'F' or 'Y'/'N'

If you are truly blessed you get to see all of these in a single database. Also “Yes”/“No” with that specific casing.

replies(2): >>DaiPlu+u1 >>orthox+c5
2. DaiPlu+u1[view] [source] 2024-08-24 17:00:53
>>0cf861+(OP)
Not to be outdone: https://thedailywtf.com/articles/what_is_truth_0x3f_
3. orthox+c5[view] [source] 2024-08-24 17:32:39
>>0cf861+(OP)
"Check constraints make the database run slower, just don't generate any values other than YN in the application layer"

You can guess how many foreign keys that database had.

replies(1): >>datadr+ne
◧◩
4. datadr+ne[view] [source] [discussion] 2024-08-24 18:39:11
>>orthox+c5
Must have been super fast though
replies(1): >>DaiPlu+bG
◧◩◪
5. DaiPlu+bG[view] [source] [discussion] 2024-08-24 22:08:27
>>datadr+ne
Not just fast, it's web-scale

https://www.youtube.com/watch?v=b2F-DItXtZs

[go to top]