Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
denis_the_thief
Aged Yak Warrior
596 Posts |
Posted - 2011-08-17 : 14:49:09
|
| I'm hoping anyone can point me in the right direction regarding Table Spools. They seem to be notorious for slow.I look at the Execution Path:- Stores the data from the input into a temporary table in order to optimize rewinds.- Estimated Number of Rows - 1,062.56- Actual Number of Rows - 20,036,927The Ouput List columns belong to a Table with 77,000 rows. How/why can SQL Server make a table of 20 million rows when the source table is only 77,000? What is a Rewind? Any ideas who to get rid of the Table Spool? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
denis_the_thief
Aged Yak Warrior
596 Posts |
Posted - 2011-08-17 : 15:14:16
|
quote: Originally posted by tkizer Sounds like you've got out-of-date stats. Have you run UPDATE STATS on the table, preferably with FULLSCAN?Tara Kizer
Thanks - yes they have been run. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
denis_the_thief
Aged Yak Warrior
596 Posts |
Posted - 2011-08-17 : 16:17:19
|
| Yes, it did recommend one. It was a covering one where the index itself already existed - I will try it... |
 |
|
|
|
|
|