<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx</link><description>For the second year in a row, I was asked to deliver a 500-level "Query Tuning Mastery" talk in room 6E of the Washington State Convention Center, for the PASS Summit. ( Here's some information about last year's talk, on workspace memory. ) And for the</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46101</link><pubDate>Mon, 12 Nov 2012 06:22:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46101</guid><dc:creator>Mbourgon</dc:creator><description>&lt;p&gt;Having watched this twice (thanks PASStv!) I can honestly say this is a stunner. I personally think we'll hear the word repartitioning and parallel apply a lot in the next couple years. Congrats, Adam, you've done a great thing. &lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46110</link><pubDate>Mon, 12 Nov 2012 19:30:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46110</guid><dc:creator>Jens Gotthardsen</dc:creator><description>&lt;p&gt;I attended your session at pass and I must say I was impressed by how you got to figure all this out. That was really manhandling :)&lt;/p&gt;
&lt;p&gt;Thanks for a great show!!!&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46117</link><pubDate>Tue, 13 Nov 2012 02:07:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46117</guid><dc:creator>NChaldysheva</dc:creator><description>&lt;p&gt;I attended your session, was among them who applauded &amp;nbsp;and since that think where and how I can implement this art. Great job, thanks&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46134</link><pubDate>Tue, 13 Nov 2012 14:49:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46134</guid><dc:creator>Mike Petri</dc:creator><description>&lt;p&gt;I also attended the session, and in my opinion, yours was the best session of the entire summit. Thanks for all the amazing insight Adam!&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>Query Tuning Mastery at PASS Summit 2012: The Video</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46136</link><pubDate>Tue, 13 Nov 2012 14:54:49 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46136</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;An especially clever community member was kind enough to reverse-engineer the video stream for me, and&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46141</link><pubDate>Tue, 13 Nov 2012 15:17:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46141</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Thanks all, for the kind words!&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46158</link><pubDate>Tue, 13 Nov 2012 21:41:38 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46158</guid><dc:creator>Anders Borum</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;thanks for sharing the talk with those of us not able to attend the session. The techniques you presented in the talk are definitely going to make a difference for our team going forward - and driving performance is always important.&lt;/p&gt;
&lt;p&gt;We're deploying more and more instances of our software on Windows Azure / SQL Azure. Is there anything regarding these techniques we should keep in mind for SQL Azure or is it fair to expect the query analyzer to work equally for SQL Server enterprise (supports parallelization) and SQL Azure?&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46164</link><pubDate>Tue, 13 Nov 2012 22:10:10 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46164</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Anders,&lt;/p&gt;
&lt;p&gt;No clue; I've never touched Azure. Does it even support parallel queries?&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46194</link><pubDate>Wed, 14 Nov 2012 13:57:48 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46194</guid><dc:creator>Anders Borum</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;I checked up on SQL Azure and it seems MAXDOP is set to 1 (which makes sense per the multi tenant environment and requirement of protecting shared resources from rogue queries).&lt;/p&gt;
&lt;p&gt;Another question on parallelism: I'm currently working with some of our queries, checking if they generate serialized or parallelized query plans. I'm running a typical query with a couple of joins against a table with 250.000+ rows and regardless of using your cross apply or other technique, the query analyzer keeps generating serialized query plans.&lt;/p&gt;
&lt;p&gt;I'm running against an enterprise version of SQL Server 2008 R2 and I've checked that the MAXDOP setting for the instance is set to 0.&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46204</link><pubDate>Wed, 14 Nov 2012 15:18:46 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46204</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Hi Anders,&lt;/p&gt;
&lt;p&gt;Lack of a parallel plan is due either to inhibition or cost. So your job is to figure out which one it is :-) ... Two things to do:&lt;/p&gt;
&lt;p&gt;A) Check out the cost for the serial plan. Is it greater than the server-level cost threshold for parallelism? If not, and a parallel plan is appropriate, you'll have to figure out how to increase the estimated cost for the query. (I've done this in the past primarily by either creating nonsense extra sorts on small sets where a sort doesn't matter, or by UNIONing in huge tables with OPTIMIZE FOR set to include all of the rows, but runtime values set to ignore them.) &lt;/p&gt;
&lt;p&gt;B) If the serial cost is greater than the threshold, then enable the trace flag I demoed in the talk, and if you get a parallel plan you'll know that you have to manipulate costs a bit to get the optimizer to play ball. If you still don't get a parallel plan, you'll know that you have an inhibitor somewhere in the query. You can check the list of inhibitors from the session, although I don't guarantee that it's 100% complete; there may be cases I am not aware of.&lt;/p&gt;
&lt;p&gt;--Adam&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46236</link><pubDate>Fri, 16 Nov 2012 01:58:50 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46236</guid><dc:creator>Kumar Setty</dc:creator><description>&lt;p&gt;Adam,&lt;/p&gt;
&lt;p&gt;I attended your session in SQLPASS, it was an excellent and the best one. &lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46261</link><pubDate>Sat, 17 Nov 2012 03:13:33 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46261</guid><dc:creator>Chris Yates</dc:creator><description>&lt;p&gt;I was able to view this on PASS TV, up there with one of the best I saw. I had a colleague who attended in person and he was blown away, I wanted to pass on his appreciation for your efforts and for mine. Many thanks.&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46285</link><pubDate>Mon, 19 Nov 2012 19:25:42 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46285</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Glad you enjoyed it, Kumar and Chris!&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#46308</link><pubDate>Tue, 20 Nov 2012 16:08:07 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:46308</guid><dc:creator>Saptagiri Tangudu</dc:creator><description>&lt;p&gt;Adam- &lt;/p&gt;
&lt;p&gt;I thoroughly enjoyed the talk. Especially, a big slide that talks about how algorithms don't scale, which I believe most programmers don't think about as much.&lt;/p&gt;
&lt;p&gt;Have you posted the slides? I am not able to find them.&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#48054</link><pubDate>Tue, 05 Mar 2013 20:09:08 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48054</guid><dc:creator>Eugene Karpovich</dc:creator><description>&lt;p&gt;Hi Adam, I attended your PASS 2012 session in person, and I also downloaded it and watched a few times afterwards.&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that I recently used your technique/trick with using TOP(big_number) to eliminate threads skew to solve a serious performance issue with one of the DW-type reports at the production client I am currently working on (a huge NY-based hedge fund).&lt;/p&gt;
&lt;p&gt;And the results were really really good.&lt;/p&gt;
&lt;p&gt;So, I just wanted to thank you for sharing your knowledge and insight.&lt;/p&gt;
&lt;p&gt;I need to tell that I don't feel I really understand all the internals of how this trick works, but I will try to dig into it further.&lt;/p&gt;
&lt;p&gt;Thanks again&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;
</description></item><item><title>re: Query Tuning Mastery at PASS Summit 2012: The Demos</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2012/11/12/query-tuning-mastery-at-pass-summit-2012-the-demos.aspx#48055</link><pubDate>Tue, 05 Mar 2013 20:16:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:48055</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;@Eugene: Great news! Huge NY-based hedge fund? I'm happy to accept, as gratitude, a small percentage of any alpha the fix helped to generate :-)&lt;/p&gt;
</description></item></channel></rss>