January 17, 2013 at 3:48 pm
Hi everyone,
I am looking at the actual execution plan of a query, and it shows that an index seek returns 50K rows and it estimated that it would return 1 row. I updated the index statistics with FULLSCAN, but it still shows the same thing. Why is that? Thanks.
January 17, 2013 at 4:00 pm
http://sqlinthewild.co.za/index.php/2009/09/22/estimated-rows-actual-rows-and-execution-count/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 17, 2013 at 4:20 pm
Very interesting, thanks!
January 18, 2013 at 11:25 am
Hi Gila,
I don't think that this applies to my scenario. I have an index scan, which has an actual rows count of 50K, and an estimated count of 375 (I had said 1 before, that was wrong). It has an execution count of 1. It is followed by a compute scalar, a sort, and then a merge join where it is joined with the results of another index scan that returns over 116K rows. Here is an image of this part of the execution plan for your review. Thanks.
January 18, 2013 at 12:32 pm
If you want an explanation, I need to see the plan, not a partially blacked out image of the plan.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply