Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Paul White
»
Inside the Optimizer: Constructing a Plan -...
32 posts, Page 2 of 4
««
1
2
3
4
»
»»
Inside the Optimizer: Constructing a Plan - Part 1
Rate Topic
Display Mode
Topic Options
Author
Message
Jeff Moden
Jeff Moden
Posted Tuesday, September 07, 2010 11:16 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 4:51 PM
Points: 32,923,
Visits: 26,811
Paul White NZ (9/7/2010)
WayneS (9/7/2010)
Have you got some references you can pass on about how the optimizer works?
For sure:
Craig Freedman:
http://blogs.msdn.com/b/craigfr/
SQL Server Storage Engine:
http://blogs.msdn.com/b/sqlserverstorageengine/
CSS:
http://blogs.msdn.com/b/psssql/
Query Processing:
http://blogs.msdn.com/b/sqlqueryprocessing/
White Papers:
http://technet.microsoft.com/en-us/sqlserver/bb671430.aspx
SQLCAT:
http://blogs.msdn.com/b/sqlcat/
Conor vs. SQL:
http://blogs.msdn.com/b/conor_cunningham_msft/
Programmability & API:
http://blogs.msdn.com/b/sqlprogrammability/
Bart Duncan:
http://blogs.msdn.com/b/bartd/
Conor @ SQLskills:
http://www.sqlskills.com/blogs/conor/
QO Team:
http://blogs.msdn.com/b/queryoptteam/
Joe Chang:
http://www.qdpma.com/CBO/SQLServerCostBasedOptimizer.html
The SQL Server Internals books edited by Kalen Delaney are also excellent sources. Optimizer stuff is covered particularly well in 2008 Internals (Conor Cunningham) and 2005 Query Tuning & Optimization (Craig Freedman).
BWAA-HAAA!!!! Been at this for a while, huh?
I haven't changed my mind since the first time I saw this series and agree that 5 stars isn't enough. Glad you brought it to SSC. Thanks, Paul.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #981747
NickBalaam
NickBalaam
Posted Tuesday, September 07, 2010 1:23 PM
Old Hand
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 7:27 AM
Points: 342,
Visits: 788
Great stuff. Looking forward to part 2 on Thursday.
Post #981845
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Tuesday, September 07, 2010 1:29 PM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 3:30 PM
Points: 31,436,
Visits: 13,751
Excellent job, Paul!
I'm sure people will love the next 3. I know I learned a few things.
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #981853
Goldie Lesser
Goldie Lesser
Posted Tuesday, September 07, 2010 1:53 PM
SSC-Addicted
Group: General Forum Members
Last Login: Tuesday, April 16, 2013 6:34 AM
Points: 476,
Visits: 1,361
Thanks for the excellent article! It was very clear and informative!
I think a deeper understanding of how the optimizer works helps us to write better queries.
Looking forward to the rest of the series.
Post #981873
Anam Verma
Anam Verma
Posted Tuesday, September 07, 2010 8:28 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 11:53 PM
Points: 524,
Visits: 1,181
Paul,
In the part1, you have mentioned about SELonJN operation, how it can be enabled?
It will be really handly if you'll also post the changes you made to the indexes or query to achieve the better performing execution plans.
Post #982007
Paul White
Paul White
Posted Tuesday, September 07, 2010 9:02 PM
SSChampion
Group: General Forum Members
Last Login: Today @ 1:03 AM
Points: 10,990,
Visits: 10,543
Anam Verma (9/7/2010)
In the part1, you have mentioned about SELonJN operation, how it can be enabled? It will be really handly if you'll also post the changes you made to the indexes or query to achieve the better performing execution plans.
All covered in the remaining parts of the series, Anam
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #982010
hrc
hrc
Posted Wednesday, September 08, 2010 1:01 AM
Grasshopper
Group: General Forum Members
Last Login: Tuesday, March 13, 2012 2:31 AM
Points: 12,
Visits: 44
Great article, great topic. I belong to the newcomer group and as such I would have liked to see how those rules you talk about, were executed. You move the "where" into the join, but in the end you just mention some rules that puts the Cherry on top of it - and I don't understand what you did.
As a newcomer to the optimizer it is not all clear that the symbols in the execution plan mean table scans or Cartesian products. I can see they cost a lot but not what they in are (well, actually I can but ... I had to think first!). Maybe some kind of symbol explanation could be added? .. or maybe this is found elsewhere in some of the many links you added.
(and I now find that most questions was found on page two in some of the newest posts)
Post #982074
spaghettidba
spaghettidba
Posted Wednesday, September 08, 2010 1:34 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Yesterday @ 8:17 AM
Points: 4,804,
Visits: 8,074
Thank you, Paul. This is one of the topics I always wanted to investigate deeper, but never did.
I look forward to reading the next parts.
I will try to avoid annoying you with my questions and post them once I got through the whole series, as I'm sure I will find the answers along the way.
Great, as usual!
Get your two-cent-answer quickly
The Spaghetti DBA
Post #982088
Paul White
Paul White
Posted Wednesday, September 08, 2010 3:19 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 1:03 AM
Points: 10,990,
Visits: 10,543
hrc_public (9/8/2010)
Great article, great topic. I belong to the newcomer group and as such I would have liked to see how those rules you talk about, were executed. You move the "where" into the join, but in the end you just mention some rules that puts the Cherry on top of it - and I don't understand what you did.
I hope the later parts will make things clearer, though this is moderately advanced stuff so it might take a while to fully 'get it'.
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #982140
Jeff Moden
Jeff Moden
Posted Wednesday, September 08, 2010 5:04 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 4:51 PM
Points: 32,923,
Visits: 26,811
Anam Verma (9/7/2010)
Paul,
In the part1, you have mentioned about SELonJN operation, how it can be enabled?
It will be really handly if you'll also post the changes you made to the indexes or query to achieve the better performing execution plans.
I had the same problem when I first read Paul's series. The point to understand here is that Paul is not actually modifying the query in this first part... instead, he's actually enabling and disabling rules in SQL Server and running the same query. I'm thick... it took until part 4 for me to figure that out.
As he said, he'll get to how to do that later. I recommend that if you ever do that, you do it only on a test server.
I also recommend keeping track of the parts of the series... when you read part 4, you'll be itching to start from the beginning again.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #982191
« Prev Topic
|
Next Topic »
32 posts, Page 2 of 4
««
1
2
3
4
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.