Questions tagged [table-spool]
2 questions
2
votes
1 answer
Adding 'top 20' massively slows down query!
I have a query:
select * from Aview where field=20
order by id desc
This returns 2700 rows from the view in about 1 second.
Adding 'top 20' to the query makes MSSQL return in 43 seconds!!
This has been a HARD to reproduce issue, and doing a rebuild…
Traderhut Games
- 173
- 1
- 8
1
vote
1 answer
Unpredictable Slowness and Table Spool(Lazy Read)
I was testing on Stackoverflow database to find out possible cases wherein SQL Server doesn't recommend index in the execution plan however if we introduce one, it would help in great way!
Did it quite easily for Group by, Order by Clause and for…
Learning_DBAdmin
- 3,924
- 19
- 39