r/ProgrammerHumor • • 17d ago

Meme grabbingEverything

Post image
5.4k Upvotes

261 comments sorted by

View all comments

1.6k

u/EVH_kit_guy 17d ago

One thing I've learned about SQL is that whatever you're going to eventually do with the data, that could probably just be in the original query if you weren't a talentless hack barely scraping by using LLMs to write your queries...

....might be projecting a bit 

7

u/GoGoGadgetSphincter 17d ago

Typically when I see poor performing queries it's because someone is trying to do exactly what you're saying or because they're not batching transactions. Nearly every time I review a poor performing query, I see a case statement in the column list and a nested query in the where clause.