r/ProgrammerHumor • • Feb 13 '19

The user's solution for everything...

Post image
5.0k Upvotes

216 comments sorted by

View all comments

Show parent comments

46

u/crashspringfield Feb 13 '19

liking this b/c i hate that you're right

20

u/[deleted] Feb 13 '19

[removed] — view removed comment

7

u/MattieShoes Feb 13 '19

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?

1

u/Punsire Feb 14 '19

In cod we trust.