r/programminghumor • u/Null_Reference1 • Mar 16 '26
Stakeholder: 'Just a quick analysis' | My query: Returns 47 million rows
Anyone else deal with this classic situation? Business stakeholder drops by with what sounds like a simple request - "hey can you just quickly check how our customers are trending by region?"
Sure thing, let me just write a quick SELECT statement... *hits enter*... query execution time: 47 minutes. Row count: 47,312,891.
Then they're standing behind your monitor asking "is it done yet?" while you're frantically trying to add WHERE clauses and LIMIT statements to make this thing not crash the entire data warehouse.
Working in logistics, I swear every "quick look at shipment patterns" turns into analyzing every package movement since 2019. The optimist in me always thinks "this time it'll be different" before writing that first query without proper filters.
What's your record for turning a "5 minute analysis" into a day-long performance optimization nightmare?