{"id":524,"date":"2011-09-27T22:48:00","date_gmt":"2011-09-27T22:48:00","guid":{"rendered":"\/blogs\/bobb\/post\/LOTS-of-New-Goodies-in-SQL-Server-Denali-Query-Plans.aspx"},"modified":"2014-01-19T19:12:12","modified_gmt":"2014-01-20T03:12:12","slug":"lots-of-new-goodies-in-sql-server-denali-query-plans","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/","title":{"rendered":"LOTS of New Goodies in SQL Server Denali Query Plans"},"content":{"rendered":"<p>\nAfter the last post on <a href=\"http:\/\/3.209.169.194\/blogs\/bobb\/additional-warnings-in-sql-server-denali-query-plans\/\" class=\"broken_link\">new warnings in SQL Server Denali Showplan<\/a>, just for the fun of it, I had a look at the XML version of the showplan. And saw some fairly amazing new things I hadn&#39;t noticed before.\n<\/p>\n<p>\nEveryone&#39;s been looking into the new &quot;Batch Execution Mode&quot; with the new <a href=\"http:\/\/social.technet.microsoft.com\/wiki\/contents\/articles\/3540.sql-server-columnstore-index-faq-en-us.aspx\" class=\"broken_link\">ColumnStore index feature<\/a>. The the new &quot;WindowSpool&quot; operator for use the new Windowing enhancements (listed under &quot;Enhancements to the OVER clause&quot; in <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/cc645577(v=SQL.110).aspx\">BOL&#39;s What&#39;s New<\/a>). But somehow I&#39;d missed these (raw XML included even though these do show up in the Query Plan Properties Windows when using the appropriate iterator)\n<\/p>\n<p>\n&lt;QueryPlan DegreeOfParallelism=&quot;0&quot; <strong>NonParallelPlanReason=&quot;MaxDOPSetToOne&quot;<\/strong> MemoryGrant=&quot;1344&quot; CachedPlanSize=&quot;24&quot; CompileTime=&quot;2&quot; CompileCPU=&quot;2&quot; CompileMemory=&quot;264&quot;&gt;<br \/>\n&nbsp; &lt;<strong>MemoryGrantInfo<\/strong> SerialRequiredMemory=&quot;512&quot; SerialDesiredMemory=&quot;1344&quot; RequiredMemory=&quot;512&quot; DesiredMemory=&quot;1344&quot; RequestedMemory=&quot;1344&quot; GrantWaitTime=&quot;0&quot; GrantedMemory=&quot;1344&quot; MaxUsedMemory=&quot;1344&quot; \/&gt;<br \/>\n&nbsp; &lt;<strong>OptimizerHardwareDependentProperties<\/strong> EstimatedAvailableMemoryGrant=&quot;39308&quot; EstimatedPagesCached=&quot;3416&quot; EstimatedAvailableDegreeOfParallelism=&quot;1&quot; \/&gt;\n<\/p>\n<p>\nOptimizer Hardware Dependent Properties? Really?&nbsp;I&#39;m sure I&#39;d never seen that before. Nor thought that SQL Server even considered the &quot;EstimatedPagesCached&quot; when creating a plan. NonParallelPlanReason would also be a big hit, perhaps. In fact, I do want to see why some of my spatial query plans don&#39;t use parallelism when spatial indexes are involved. Just what I needed (and no, it wasn&#39;t that I set MaxDOP to 1).\n<\/p>\n<p>\nIntruiged, I took a look at the XSD schema for Showplan in Denali (did you know there is an XSD schema for Showplan? It&#39;s under the SQL Server directory under &quot;&#8230;110\\Tools\\Binn\\Schemas&quot;). And did a quick diff with the XSD schema for Showplan in SQL Server 2008 R2. All the new elements and attributes I&#39;ve mentioned here (and more) are there in the new schema (which retains the same XML targetNamespace but does add an attribute &quot;version=1.2&quot;. Nice. There&#39;s too many interesting items to list here, and some of them don&#39;t seem to be implemented, at least in the plans I&#39;m looking at. Some of these look like they&#39;re for special hardware configurations.\n<\/p>\n<p>\nI&#39;m impressed by just those two new elements in the XML above. And the new &quot;NonParallelPlanReason&quot; attribute. Maybe I&#39;m just easy to please&#8230;<a href=\"mailto:p@bobbeauch\"><\/a>\n<\/p>\n<p><a href=\"mailto:p@bobbeauch\"><\/p>\n<p>\n@bobbeauch\n<\/p>\n<p><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After the last post on new warnings in SQL Server Denali Showplan, just for the fun of it, I had a look at the XML version of the showplan. And saw some fairly amazing new things I hadn&#39;t noticed before. Everyone&#39;s been looking into the new &quot;Batch Execution Mode&quot; with the new ColumnStore index feature. [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,31],"tags":[],"class_list":["post-524","post","type-post","status-publish","format-standard","hentry","category-performance","category-sql-server-2012"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin\" \/>\n<meta property=\"og:description\" content=\"After the last post on new warnings in SQL Server Denali Showplan, just for the fun of it, I had a look at the XML version of the showplan. And saw some fairly amazing new things I hadn&#039;t noticed before. Everyone&#039;s been looking into the new &quot;Batch Execution Mode&quot; with the new ColumnStore index feature. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/\" \/>\n<meta property=\"og:site_name\" content=\"Bob Beauchemin\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-27T22:48:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-01-20T03:12:12+00:00\" \/>\n<meta name=\"author\" content=\"Bob Beauchemin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bob Beauchemin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/\",\"name\":\"LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\"},\"datePublished\":\"2011-09-27T22:48:00+00:00\",\"dateModified\":\"2014-01-20T03:12:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Performance\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/performance\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LOTS of New Goodies in SQL Server Denali Query Plans\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/\",\"name\":\"Bob Beauchemin\",\"description\":\"SQL Server Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e\",\"name\":\"Bob Beauchemin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g\",\"caption\":\"Bob Beauchemin\"},\"sameAs\":[\"http:\/www.sqlskills.com\/blogs\/bobb\/\"],\"url\":\"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/","og_locale":"en_US","og_type":"article","og_title":"LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin","og_description":"After the last post on new warnings in SQL Server Denali Showplan, just for the fun of it, I had a look at the XML version of the showplan. And saw some fairly amazing new things I hadn&#39;t noticed before. Everyone&#39;s been looking into the new &quot;Batch Execution Mode&quot; with the new ColumnStore index feature. [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/","og_site_name":"Bob Beauchemin","article_published_time":"2011-09-27T22:48:00+00:00","article_modified_time":"2014-01-20T03:12:12+00:00","author":"Bob Beauchemin","twitter_misc":{"Written by":"Bob Beauchemin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/","name":"LOTS of New Goodies in SQL Server Denali Query Plans - Bob Beauchemin","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website"},"datePublished":"2011-09-27T22:48:00+00:00","dateModified":"2014-01-20T03:12:12+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/lots-of-new-goodies-in-sql-server-denali-query-plans\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/"},{"@type":"ListItem","position":2,"name":"Performance","item":"https:\/\/www.sqlskills.com\/blogs\/bobb\/category\/performance\/"},{"@type":"ListItem","position":3,"name":"LOTS of New Goodies in SQL Server Denali Query Plans"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/","name":"Bob Beauchemin","description":"SQL Server Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/bobb\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/62bfa986c5b5d28fcffd8b4fc409c73e","name":"Bob Beauchemin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/bobb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f80e6cc667410857fa6a21931dc528b8092f4d112bf7a8ff7c267674d44ee37?s=96&d=mm&r=g","caption":"Bob Beauchemin"},"sameAs":["http:\/www.sqlskills.com\/blogs\/bobb\/"],"url":"https:\/\/www.sqlskills.com\/blogs\/bobb\/author\/bobb\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/posts\/524\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/categories?post=524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/bobb\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}