Common Table Expression Fork Bombs
Автор: Erik Darling (Erik Darling Data)
Загружено: 2025-06-24
Просмотров: 650
Описание:
In this video, I delve into a fascinating concept known as the CTE fork bomb, exploring how recursive Common Table Expressions (CTEs) can lead to exponential growth in row counts and execution time. I start by setting up simple sample data and gradually build complexity through nested loops joins and window functions, illustrating how each additional layer of recursion multiplies the workload exponentially. By breaking down the query plans step-by-step, I highlight the hidden costs and potential performance pitfalls that can arise from such recursive structures. This video is packed with visual aids and practical examples to help you understand the mechanics behind these execution plan quirks and equip you with strategies to mitigate their impact on your queries. Whether you're a database enthusiast or a professional looking to optimize complex SQL operations, there's plenty of fun and valuable insights here!
CHAPTERS
00:00:00 - Introduction to CTE and Query Plan Multiplication
00:03:59 - Initial Query Setup and Execution Plan Overview
00:07:46 - Exploring the Top Part of the Execution Plan
00:12:54 - Understanding the Bottom Part of the Execution Plan
00:16:03 - Multiplication of Rows in Nested Loops Join
00:18:07 - Conclusion and Future Topics
━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 TRAINING & COURSES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Get AI-Ready With Erik
https://training.erikdarling.com/get-...
SQL Server Performance Engineering Course
https://training.erikdarling.com/sql-...
Learn T-SQL with Erik
https://training.erikdarling.com/lear...
Everything Bundle:
https://training.erikdarling.com/?cou...
━━━━━━━━━━━━━━━━━━━━━━━━━━
🛠️ CONSULTING & SERVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Need SQL Server performance help?
https://training.erikdarling.com/sqlc...
━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 CONNECT
━━━━━━━━━━━━━━━━━━━━━━━━━━
Ask questions at Office Hours
https://erikdarling.com/officehours/
Become a channel member
/ @erikdarlingdata
━━━━━━━━━━━━━━━━━━━━━━━━━━
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: