Databases from the Battlefield

#database #sql #performance

There is a ladder of knowledge in learning about databases. Step one is learning the basic commands SELECT, INSERT, UPDATE and DELETE. After that you learn about Subselects and the various JOINs. Eventually you learn about creating your own schema, many to many relationships and database indexes. Eventually you might even learn about database normal forms which are similar to the Ten Commandments: people think they know what they are but when pressed can normally only name one or two (killing and stealing are bad right?).

I’m going to assume you already know all of this or if you don’t that you can easily learn it on your own. At the very least you should learn the database normal forms so you can impress in a job interview some day.

Instead, I’m going to teach you the zen secrets of databases that they don’t teach you in school. My next post will start with the infamous N+1 Select.