SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Execution Plan


Execution Plan

Author
Message
lnpurdie
lnpurdie
SSC Veteran
SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)

Group: General Forum Members
Points: 264 Visits: 89
I am attempting to refactor some code from another developer. Attached is the Original Execution Plan I am tackling. The SQL using#TemDB tables which makes sense as they reference the table 5x so a CTE would not be efficient.

They are doing a lot of select distinct, UNION - EXCEPTS, MERGE JOINS. So expensive sorts in the TempDB. I am simplifying their code to eliminate most of the force sprt statements. My question is what is the fact the worst part of the Batch is 0% with like 9k estimated cost I think I know but cannot find a good article or Video to confirm what I think this is saying to me. Any links that would relate to my question, would be grateful
Attachments
Original Execution Plan.sqlplan (24 views, 1.00 MB)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search