News for hackers. Stuff that matters.
Re:SQL style guide by forkandwait on Sunday October 09, 2016 @04:42PM (#12673357)
I am working with a 20 table db (not including lookups and session management tables) based on surrogate keys and it sucks ass for discoverability. It also subverts data checking based on SQL REFERENCES. I think natural / composite keys should used to design the db and establish relationships, surrogate keys added only if necessary, and then auto-generated, just like one waits to denormalize until there is a real need.

I suspect the love of surrogate keys is just more MySQL bullshit pretending that classic SQL design is wrong merely because it is not implemented in that particular broken database.

Re:SQL style guide by Dowwie on Monday October 10, 2016 @01:11PM (#12678408)
I'm not using mysql. Would you mind expanding what you mean by the struggles you've experienced during discoverability?