Tags
26 performance tuning questions and solutions, How to properly read an Execution Plan/Query Plan?, How to properly read an Execution Plan?, How to read an Execution Plan?, How to tune SQL queries, Interview questions for SQL Server Performance Tuning, Looking for SQL Optimization Interview Questions, performance sql server, Performance tips for faster SQL queries, Performance Tuning, Performance Tuning for SQL Server, Query Optimization, Query Performance Tuning, SQL Complex Queries, SQL Execution plan, SQL Optimization Interview Questions, sql performance, sql performance and tuning, sql performance explained pdf, sql performance tips, SQL Performance Tuning, sql performance tuning and optimization, sql performance tuning interview questions, sql performance tuning tips, SQL Query Optimizer, SQL Query Tuning or Query Optimization, SQL SERVER Interview questions, SQL server optimization interview questions and answers, sql server performance query, sql server performance slow, SQL Server Performance Tuning, SQL Server Performance Tuning Tips, SQL SERVER Tips, SQL Tuning Overview, Tips for SQL Database Tuning and Performance, Top 10 performance tuning tips for relational databases
How to properly read an Execution Plan/Query Plan?
Download PDF – How to properly read execution plan?
Data flows from RIGHT (TOP) to LEFT in the query plan. That is it data centric view of the query plan.
Logic in the query plan flows from LEFT to RIGHT. This is logic centric view of the query plan.
Well there is nothing like correct or incorrect way of reading the plan. It’s just that we have two different ways of reading the plan.
All the operators used in the execution plan are called physical operators.
Let’s go through an example. We know that select and top operator cannot have rows from their own. They are dependent on Clustered Index scan. So when the execution starts the “Select” operator asks the “Top” operator that hey do you have any rows for me, Top operator says that I don’t have rows let me ask “Clustered Index Scan”. Hey “Clustered Index scan” do you have any rows for me and “Clustered index scan” says yes I have rows for you.
That is how the logic flows from left to right and data flows from right to left.
Summary
By reading the execution plan both the ways we can easily track down issues and bottlenecks very quickly. Basically we will easily understand what’s going on in the execution plan.
That’s all folks; I hope you’ve enjoyed learning about how we can read execution plan more effectively and I’ll see you soon with more “Performance Tuning” articles.
Thanks!
Pawan Kumar Khowal
MSBISKills.com
You must be logged in to post a comment.