{"id":19,"date":"2007-08-20T19:46:17","date_gmt":"2007-08-20T17:46:17","guid":{"rendered":"https:\/\/www.sqlinthewild.co.za\/?p=19"},"modified":"2007-08-20T19:46:17","modified_gmt":"2007-08-20T17:46:17","slug":"reading-execution-plans","status":"publish","type":"post","link":"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/08\/20\/reading-execution-plans\/","title":{"rendered":"Reading Execution plans"},"content":{"rendered":"<p>One of the more common questions I get from colleagues is on how to read the execution plan that SQL produces. At first I found it quite a hard question to answer as no one really taught me how to read them. When I started with performance tuning I got a bit thrown in the deep end.<\/p>\n<p>This is going to be the first in a series, maybe short, maybe long, on reading SQL&#8217;s execution plans. I&#8217;m going to go into the overall structure of a plan; the differences between the actual and the estimated plans, and how to obtain both; and some of the more common query operators and how they affect query performance.<\/p>\n<p>If you have any specific questions that you&#8217;d like answering regarding execution plans, please post a comment here. Otherwise I&#8217;m going to ramble on a bit touching on things that I feel are important and relevant and maybe missing things that you would like to know.<\/p>\n<p>Current articles in this series, in order of writing, are<\/p>\n<ol>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/08\/27\/structure-of-an-execution-plan\/\">Structure of an execution plan<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/09\/04\/execution-plans-estimated-vs-actual\/\">Execution plans, estimated vs actual<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/10\/06\/execution-plans-from-profiler\/\">Execution plans from Profiler<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/10\/28\/a-basic-execution-plan\/\">A basic execution plan<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/11\/15\/execution-plan-operations-scans-and-seeks\/\">Execution plan operations &#8211; scans and seeks<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/12\/30\/execution-plan-operations-joins\/\">Execution plan operations &#8211; joins<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2008\/01\/27\/execution-plan-aggregate-operators\/\">Execution plan operations &#8211; aggregate<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2008\/03\/30\/execution-plan-operations-misc\/\">Execution plan operations &#8211; misc<\/a><\/li>\n<li><a href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2008\/04\/23\/execution-plans-important-properties\/\"> Execution plans &#8211; important properties<\/a><\/li>\n<li><a title=\"Edit &quot;Execution plan - more properties&quot;\" href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2008\/10\/06\/execution-plan-more-properties\/\">Execution plan &#8211; more properties<\/a><\/li>\n<li><a href=\"..\/index.php\/2008\/08\/28\/an-example-exec-plan\/\">An example execution plan<\/a><\/li>\n<\/ol>\n<p>There is more to come.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the more common questions I get from colleagues is on how to read the execution plan that SQL produces. At first I found it quite a hard question to answer as no one really taught me how to&#8230; <a class=\"read-more-button\" href=\"https:\/\/www.sqlinthewild.co.za\/index.php\/2007\/08\/20\/reading-execution-plans\/\">(Read more)<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[23,15],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-execution-plans","category-sql-server"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7h6n-j","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlinthewild.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}