<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Articles &#187; MDW</title>
	<atom:link href="http://www.sqldba.co.nz/blog/?feed=rss2&#038;cat=28" rel="self" type="application/rss+xml" />
	<link>http://www.sqldba.co.nz/blog</link>
	<description></description>
	<lastBuildDate>Thu, 27 Jul 2017 19:31:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>MDW (Management Data Warehouse) Missing Index</title>
		<link>http://www.sqldba.co.nz/blog/?p=166</link>
		<comments>http://www.sqldba.co.nz/blog/?p=166#comments</comments>
		<pubDate>Sun, 21 Sep 2014 20:21:14 +0000</pubDate>
		<dc:creator><![CDATA[brentm]]></dc:creator>
				<category><![CDATA[MDW]]></category>

		<guid isPermaLink="false">http://www.sqldba.co.nz/blog/?p=166</guid>
		<description><![CDATA[The cleanup job for the MDW (mdw_purge_data) has a step that performs the following query&#8230; SELECT qt.sql_handle INTO #tmp_notable_query_text FROM snapshots.notable_query_text as qt WHERE NOT EXISTS (SELECT snapshot_id FROM snapshots.query_stats as qs WHERE qs.sql_handle = qt.sql_handle) and as a result &#8230; <a href="http://www.sqldba.co.nz/blog/?p=166">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The cleanup job for the MDW (mdw_purge_data) has a step that performs the following query&#8230;</p>
<pre>SELECT qt.sql_handle
    INTO #tmp_notable_query_text
    FROM snapshots.notable_query_text as qt
    WHERE NOT EXISTS (SELECT snapshot_id
                      FROM snapshots.query_stats as qs
                      WHERE qs.sql_handle = qt.sql_handle)</pre>
<p>and as a result is missing the following index on:</p>
<p>[snapshots].[query_stats] ([sql_handle])</p>
<p>This index can change the run time of the purge from hours to minutes.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqldba.co.nz/blog/?feed=rss2&#038;p=166</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
