Maybe you’re luckier than me. Maybe you’ve never opened a .sql file or an Airflow DAG only to be greeted by a 5,000+ line query…a true monster of a script that leaves you wondering where to begin. I’ve seen plenty of these, and every time, I ask myself: Why in the world do these exist? And, more importantly, how can teams avoid them? With tools like ChatGPT and Cursor making it easier than ever to generate SQL, I have a feeling we’ll see even more of these sprawling queries in the wild. So, in this article, I’ll explore why massive SQL queries happen, why they’re a problem, and how you can break them down before they become unmanageable. https://lnkd.in/gzzRDFGR
Maybe I'm more unlucky than you, what happens then?
Now that AI can write... well, anything, I think it is a very important topic to discuss. Thanks for sharing Seattle Data Guy!
Thanks for sharing this, very informative. I've seen and heard, but your analysis breaks it down quite succinctly. "I have a feeling we’ll see even more of these sprawling queries in the wild" - I guess we've had developers thinking like GPT for a long time 😊