the light bulb moment for SQL for me was when you leave out join types and extra clauses. Like:
SELECT <things> from table_a, table_b;
and you get every single fucking permutation of table_a rows attached to table_b rows.
And then you understand why SQL optimization is important -- because generating every possible combination of rows is soooooo fucking bad. If each have 1000 rows, you just generated a million row table, FFS. Get more joins in there and christ, who thought relational databases were a good idea?
46
u/crashspringfield Feb 13 '19
liking this b/c i hate that you're right