October 27, 2010 at 7:41 am
That's... a lot. I'm not going through all of it in detail. Summary: Tons of key lookup operations. Every one of those is probably hurting your performance. You need to look at the clustered indexes on the tables to be sure they're appropriate to how you're accessing data. Secondarily you can look at covering indexes on all that. Also, you've got a lot of disparity between estimated rows & actual rows. This could be caused by all the TVFs or it could be that your statistics are out of date. Instead of running sp_updatestats, try running UPDATE STATISTICS WITH FULL SCAN against the tables involved, see if that changes things.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
October 27, 2010 at 11:13 am
ChrisM@home (10/26/2010)
hosseini.mehran (10/26/2010)
So what is your suggestion?Post the whole query. Could a doctor diagnose a sore throat from looking at a single toe?
BWAA-HAA!!! If someone has their foot in their mouth, maybe. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 16 through 16 (of 16 total)
You must be logged in to reply to this topic. Login to reply