{"id":424,"date":"2008-02-02T15:05:08","date_gmt":"2008-02-02T15:05:08","guid":{"rendered":"\/blogs\/conor\/post\/Partition-Elimination-202.aspx"},"modified":"2013-01-01T19:22:51","modified_gmt":"2013-01-01T19:22:51","slug":"partition-elimination-202","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/","title":{"rendered":"Partition Elimination 202"},"content":{"rendered":"<p>In my previous post, I talked about the basics of partition elimination and mentioned some of the challenges.&nbsp; SQL 2005 does contain logic to do partition elimination, but it is imperfect because some of the interactions with other features in the optimizer didn&#8217;t always do partition elimination when customers wanted\/expected it to do so.&nbsp; SQL 2008 uses a somewhat different internal notation for partitioning, and it appears (from what I have seen so far) to do a better job at some of the interactions that were troublesome for 2005.&nbsp; This should make partitioning work much more seamlessly in the upcoming release.<\/p>\n<p>This example was motivated by a reader of the blog (thanks!) who was using a partitioned fact table for sales data and joining to another table to roll his own row-level security.&nbsp; I&#8217;ve seen a number of customers do row-level security this way, so it&#8217;s actually not a bad example for how things can break down in partition elimination in 2005 vs. 2008.&nbsp; Here is the script we&#8217;ll use for the example:<\/p>\n<pre><span style=\"color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;\"><span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">create<\/span> partition <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">function<\/span> pf2(<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">int<\/span>) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">as<\/span> range <span style=\"color: Fuchsia; background-color: transparent; font-family: Courier New; font-size: 11px;\">left<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">for<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (10, 20, 30)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">create<\/span> partition scheme ps2 <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">as<\/span> partition pf2 <span style=\"color: Silver; background-color: transparent; font-family: Courier New; font-size: 11px;\">ALL<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">to<\/span> ([<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">primary<\/span>])\r\n\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">create<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">table<\/span> usersecuritybysite(username <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">nvarchar<\/span>(100), site <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">int<\/span>)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> usersecuritybysite(username, site) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (<span style=\"color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;\">'dbo'<\/span>, 1)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> usersecuritybysite(username, site) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (<span style=\"color: Red; background-color: transparent; font-family: Courier New; font-size: 11px;\">'dbo'<\/span>, 2)\r\n\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">create<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">table<\/span> factsales(site <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">int<\/span>, invoice <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">int<\/span>, itemid <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">int<\/span>, col3 <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">binary<\/span>(2000)) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">ON<\/span> ps2(site)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> factsales (site, invoice, itemid) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (1, 1, 1)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> factsales (site, invoice, itemid) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (2, 1, 1)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> factsales (site, invoice, itemid) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (3, 1, 1)\r\n<span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">insert<\/span> <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">into<\/span> factsales (site, invoice, itemid) <span style=\"color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;\">values<\/span> (4, 1, 1)<\/span><\/pre>\n<p>This obviously has far less data than an actual fact table, but I&#8217;ll show you the plans that are interesting from this example and they should translate to an evaluation of a plan on a full-scale system.<\/p>\n<p>So, we have two tables, both heaps.&nbsp; The fact table is partitioned, and we will always join with an unpartitioned (but likely smaller) table when querying the fact table.&nbsp; SQL 2005 generates the following plan:<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2005plan1.jpg\" border=\"0\"><\/p>\n<p>So the optimizer generates a plan to build a hash table from usersecuritybysite and then probe it with every row from the partitioned table.&nbsp; That&#8217;s actually not a horrible plan, but as the cardinality of the fact table increases, this will get worse because we&#8217;re scanning all partitions.&nbsp; If we look at the statistics profile, we can see that all 4 partitions are scanned once in this plan.&nbsp; Ideally, we&#8217;d like it to use the information from the usersecuritybysite table to eliminate partitions &#8220;almost always&#8221;.&nbsp; That would be safer.&nbsp; (Nothing in optimization is simple, and there are actually more plans I&#8217;d consider here, but I&#8217;d like to focus on the point of not touching useless partitions in this post &#8211; in this case, I actually do want to avoid touching unneeded partitions as often as possible).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2005plan1statsprofile.jpg\" border=\"0\"><\/p>\n<p>The constant scan with values 1,2,3,4 is where the partition information is encoded in SQL 2005.<\/p>\n<p>Each partition has roughly the startup cost of a table, so think of this as opening 4 tables.&nbsp; Databases are usually optimized so that reading lots of rows is the fastest thing &#8211; opening tables won&#8217;t be as fast as opening rows, and when push comes to shove one will optimize row reads at the expense of table opens every time.<\/p>\n<p>Let&#8217;s look at the SQL 2008 plan:<br \/><img decoding=\"async\" src=\"https:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2008plan.jpg\" border=\"0\"><\/p>\n<p>Hey, what happened?&nbsp; Well, the internal plan representation in SQL 2005 was pretty good but not perfect.&nbsp; I think it&#8217;s fair to say that it does a better job than partitioned views for local cases, but it wasn&#8217;t as good as the non-partitioned tables in a few cases.&nbsp; Many of the improvements that were driven in 2005 led to lessons that were incorporated in 2008&#8217;s optimizer support.&nbsp; Specifically, compilation time is higher in 2005 for partitioned tables because there are more operators in the tree.&nbsp; Also, the introduction of these extra operators happened to make &#8220;trivial&#8221; plans no longer &#8220;trivial&#8221; (because partitioning is represented as a join in 2005, and joins mean cost-based choices, and therefore it is not &#8220;trivial&#8221; to choose a plan).&nbsp; Finally, some of the plan choices that happen in the non-partitioned cases from years and years of tweaking queries didn&#8217;t quite fit with partitioning because of the representation.&nbsp; For example, index selection didn&#8217;t know as much about partition selection as it needed to have to make perfect plan choices.&nbsp; <\/p>\n<p>So, 2008 changes things largely for the better.&nbsp; The stats profile for this plan in 2008 is here:<br \/><img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/conroy\/AppData\/Local\/Temp\/moz-screenshot.jpg\" alt=\"\"><br \/><img decoding=\"async\" src=\"https:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2008statsprofile.jpg\" border=\"0\"><\/p>\n<p>So you&#8217;ll notice a few things.&nbsp; First, the constant scan is gone, and this plan looks like the non-partitioned plan.&nbsp; Hey, is that a seek?&nbsp; What&#8217;s up with that?&nbsp; This is a heap!!! Well, the optimizer now has some smarts to treat partitioning as a special leading index key, and even heaps can have them.&nbsp; So, now the index selection code can do most of the partitioning applications better and avoid some of those seams I mentioned earlier.&nbsp; It&#8217;s harder to tell how many partitions got pruned, but if you look at the text more closely:<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&#8211;Table Scan(OBJECT:([t1].[dbo].[factsales] AS [fs]), SEEK:([PtnId1004]=RangePartitionNew([t1].[dbo].[usersecuritybysite].[site] as [us].[site],(0),(10),(20),(30))),&nbsp; WHERE:([t1].[dbo].[factsales].[site] as [fs].[site]=[t1].[dbo].[usersecuritybysite].[site] as [us].[site]) ORDERED FORWARD)<\/p>\n<p>You can see that the optimizer is running some partition function on the usersecuritybysite.site column as part of the SEEK.&nbsp; I&#8217;m asking my friends if this is the only indication I can see beyond looking down at the lock manager, but this is what I can see right now.<\/p>\n<p>To be clear, 2005 also has the ability to partition pruning.&nbsp; I&#8217;m not sure how many people store their fact tables in heaps and how often it happens to not prune.&nbsp;&nbsp; If we create a clustered index on the fact table in 2005, you get a better plan:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2005plan2statsprofile.jpg\" border=\"0\"><\/p>\n<p>This isn&#8217;t quite as perfect as the 2008 plan, but it does avoid opening unneeded partitions.&nbsp; In this case, the security table is scanned and joined with the list of partitions run against the partition function.&nbsp; This generates the right partition to open for each security table row.&nbsp; It happens to work great for this case because the table is being used as a &#8220;gate&#8221; to let the user see the partition or not.&nbsp; Things get a bit more complex when the non-partitioned tables has duplicates or many rows from the fact table can be matched (you might want to pre-sort your partition requests and use a different plan in that case to avoid re-opening partitions).<\/p>\n<p>So, the bottom line is that this stuff is complicated and it&#8217;s a possible to get an imperfect plan at times.&nbsp; You can use this technique to see if your 2005 plan is eliminating all the partitions you would expect.&nbsp; If you end up with a plan that doesn&#8217;t prune properly, you can do things like split the query or use a hint to force the optimizer to do what you want.&nbsp; I&#8217;d recommend that you know what you are doing before going down either path.&nbsp; Everyone has different levels of experience on this stuff, and it can be tricky to fully understand all of the interactions. I hope I&#8217;ve given you enough insight in this post to see whether you have a problem.&nbsp; <\/p>\n<p>Also, please be careful using statistics profile on a production machine,&nbsp; and be sure to turn it off when you are done &#8211; it slows down queries, and nothing makes Conor angrier than a needlessly slow query ;).<\/p>\n<p>Have a good weekend, y&#8217;all!<\/p>\n<p>Conor<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post, I talked about the basics of partition elimination and mentioned some of the challenges.&nbsp; SQL 2005 does contain logic to do partition elimination, but it is imperfect because some of the interactions with other features in the optimizer didn&#8217;t always do partition elimination when customers wanted\/expected it to do so.&nbsp; SQL [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Partition Elimination 202 - Conor Cunningham<\/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\/conor\/partition-elimination-202\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Partition Elimination 202 - Conor Cunningham\" \/>\n<meta property=\"og:description\" content=\"In my previous post, I talked about the basics of partition elimination and mentioned some of the challenges.&nbsp; SQL 2005 does contain logic to do partition elimination, but it is imperfect because some of the interactions with other features in the optimizer didn&#8217;t always do partition elimination when customers wanted\/expected it to do so.&nbsp; SQL [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/\" \/>\n<meta property=\"og:site_name\" content=\"Conor Cunningham\" \/>\n<meta property=\"article:published_time\" content=\"2008-02-02T15:05:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-01-01T19:22:51+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2005plan1.jpg\" \/>\n<meta name=\"author\" content=\"Conor Cunningham\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Conor Cunningham\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/\",\"name\":\"Partition Elimination 202 - Conor Cunningham\",\"isPartOf\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/#website\"},\"datePublished\":\"2008-02-02T15:05:08+00:00\",\"dateModified\":\"2013-01-01T19:22:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/f9106e03423de6b5157295891b8c3ae3\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Partition Elimination 202\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/#website\",\"url\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/\",\"name\":\"Conor Cunningham\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/f9106e03423de6b5157295891b8c3ae3\",\"name\":\"Conor Cunningham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d9c37eff231ec89c1b244347d966860875eea8b55b366911d2694e8cd9913e57?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d9c37eff231ec89c1b244347d966860875eea8b55b366911d2694e8cd9913e57?s=96&d=mm&r=g\",\"caption\":\"Conor Cunningham\"},\"url\":\"https:\/\/www.sqlskills.com\/blogs\/conor\/author\/conor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Partition Elimination 202 - Conor Cunningham","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\/conor\/partition-elimination-202\/","og_locale":"en_US","og_type":"article","og_title":"Partition Elimination 202 - Conor Cunningham","og_description":"In my previous post, I talked about the basics of partition elimination and mentioned some of the challenges.&nbsp; SQL 2005 does contain logic to do partition elimination, but it is imperfect because some of the interactions with other features in the optimizer didn&#8217;t always do partition elimination when customers wanted\/expected it to do so.&nbsp; SQL [&hellip;]","og_url":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/","og_site_name":"Conor Cunningham","article_published_time":"2008-02-02T15:05:08+00:00","article_modified_time":"2013-01-01T19:22:51+00:00","og_image":[{"url":"http:\/\/www.sqlskills.com\/blogs\/conor\/content\/binary\/sql2005plan1.jpg"}],"author":"Conor Cunningham","twitter_misc":{"Written by":"Conor Cunningham","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/","url":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/","name":"Partition Elimination 202 - Conor Cunningham","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/#website"},"datePublished":"2008-02-02T15:05:08+00:00","dateModified":"2013-01-01T19:22:51+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/f9106e03423de6b5157295891b8c3ae3"},"breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/partition-elimination-202\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/conor\/"},{"@type":"ListItem","position":2,"name":"Partition Elimination 202"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/conor\/","name":"Conor Cunningham","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/conor\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/f9106e03423de6b5157295891b8c3ae3","name":"Conor Cunningham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/conor\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d9c37eff231ec89c1b244347d966860875eea8b55b366911d2694e8cd9913e57?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d9c37eff231ec89c1b244347d966860875eea8b55b366911d2694e8cd9913e57?s=96&d=mm&r=g","caption":"Conor Cunningham"},"url":"https:\/\/www.sqlskills.com\/blogs\/conor\/author\/conor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/posts\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/comments?post=424"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/posts\/424\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/conor\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}