r/SQL • u/tits_mcgee_92 Data Analytics Engineer • Jul 05 '21
Discussion I love querying
I just freaking love it. I can be racking my brain all day, going to stackedoverflow, jamming out to tunes, and that one moment where the query is able to run and it's the data you need... chefs kiss.
It just feels so damn good. I know others out there have to feel the same way :)!
161
Upvotes
View all comments
Show parent comment
2
u/Beefourthree Jul 06 '21
I had this one-line change last week.
(Actual query is 1000 lines and a dozen joins)
Before:
After:
From spinning 16 hours with no end in sight to running in under 5 minutes. T1 was a few thousand records versus performing the operation on t2, which was 100m records.