Tuesday, July 17, 2018

How to read the graphical execution plan in Sql Server?

The Graphical Execution Plan should be read from Right to Left.

  • Check the Graphical execution plan of a stored procedure / Query
  •  Table Scan – Index is missing
  • Index Scan – Proper indexes are not using
  • BookMark Lookup – Limit the number of columns in the select list
  •  Filter – Remove any functions from where clause; may require additional indexes
  • Sort – Does the data really need to be sorted? Can an index be used to avoid sorting? Can sorting be done at the client more efficiently?
  •  DataFlow Arrow – High density: Sometimes you find few rows as outcome but the arrow line density indicates the query/proc processing huge number of rows
  •  Cost – Can easily find out which table / operation taking much time
  • From the execution plan, we can find out the bottlenecks and give the possible solution to avoid latency

ITWORLD
If you have any question then you put your question as comments.

Put your suggestions as comments