<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: The most optimal join type</title>
	<atom:link href="http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/</link>
	<description>A discussion on SQL Server</description>
	<lastBuildDate>Mon, 14 May 2012 23:51:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Thomas LeBlanc</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-915</link>
		<dc:creator>Thomas LeBlanc</dc:creator>
		<pubDate>Wed, 10 Nov 2010 22:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-915</guid>
		<description>Great article, again...keep them coming</description>
		<content:encoded><![CDATA[<p>Great article, again&#8230;keep them coming</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-853</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Mon, 01 Nov 2010 19:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-853</guid>
		<description>Pretty much, yes in most cases.

There are times that you will want to overule the optimiser, the trick is to know when those times are and to have full understanding of why you&#039;re overruling it and what the effects will be.</description>
		<content:encoded><![CDATA[<p>Pretty much, yes in most cases.</p>
<p>There are times that you will want to overule the optimiser, the trick is to know when those times are and to have full understanding of why you&#8217;re overruling it and what the effects will be.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-848</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Mon, 01 Nov 2010 11:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-848</guid>
		<description>Great post!

One thing I understand from here is it is better to let the query optimizer decide what method should be used, rather than forcing a join type using any hints.

If my understanding is correct, I wonder why there should be so much complicated literature elsewhere (including the MSDN) about explicit hints.</description>
		<content:encoded><![CDATA[<p>Great post!</p>
<p>One thing I understand from here is it is better to let the query optimizer decide what method should be used, rather than forcing a join type using any hints.</p>
<p>If my understanding is correct, I wonder why there should be so much complicated literature elsewhere (including the MSDN) about explicit hints.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-583</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 01 Dec 2009 15:41:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-583</guid>
		<description>Wow, I did not know that you would respond so soon.

Thanks and I will check out the rest of your index posts soon.  :D</description>
		<content:encoded><![CDATA[<p>Wow, I did not know that you would respond so soon.</p>
<p>Thanks and I will check out the rest of your index posts soon.  <img src='http://sqlinthewild.co.za/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gail</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-582</link>
		<dc:creator>Gail</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-582</guid>
		<description>Depends. Both can work. In this specific case, the where clause refers to joinTable1, which becomes the outer table of the join, so an index on the join column won&#039;t be used. If it was the inner table, that index would be very useful.

In a real-life situation, I&#039;d probably test both options (ID, someString) and (Somestring, ID) and see which one produced the more optimal performance.

Go have a look at some of my indexing posts (if you haven&#039;t), specifically the two on selectivity and column order</description>
		<content:encoded><![CDATA[<p>Depends. Both can work. In this specific case, the where clause refers to joinTable1, which becomes the outer table of the join, so an index on the join column won&#8217;t be used. If it was the inner table, that index would be very useful.</p>
<p>In a real-life situation, I&#8217;d probably test both options (ID, someString) and (Somestring, ID) and see which one produced the more optimal performance.</p>
<p>Go have a look at some of my indexing posts (if you haven&#8217;t), specifically the two on selectivity and column order</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://sqlinthewild.co.za/index.php/2009/11/24/the-most-optimal-join-type/comment-page-1/#comment-581</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://sqlinthewild.co.za/?p=483#comment-581</guid>
		<description>Hi:

I have a question on indexing one of your examples.

For instance if we take this example from up above.....

1.  SELECT SomeString
2.  FROM jointable1 j1
3.    INNER JOIN jointable2 j2 ON j1.somestring = j2.joinstring
4.  WHERE ID BETWEEN 0 AND 5000
5.  OPTION (LOOP JOIN)

Where would you start the index in the where clause or the join clause?</description>
		<content:encoded><![CDATA[<p>Hi:</p>
<p>I have a question on indexing one of your examples.</p>
<p>For instance if we take this example from up above&#8230;..</p>
<p>1.  SELECT SomeString<br />
2.  FROM jointable1 j1<br />
3.    INNER JOIN jointable2 j2 ON j1.somestring = j2.joinstring<br />
4.  WHERE ID BETWEEN 0 AND 5000<br />
5.  OPTION (LOOP JOIN)</p>
<p>Where would you start the index in the where clause or the join clause?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

