How Eager Index Spools Cause Performance Problems
More From This Series
Going Further
For youWork With Your Databases the Way I DoVideo course, $250 until December 1, then $500For your teamAI for Database Teams WorkshopOne day, on-site or remoteOne-on-oneWork With Me for a Day$2,499
Someone still has to know enough SQL Server to keep the robots in check, and that’s what my training is for.
I followed along and took it one step further, indexing the Users table as you mentioned:
CREATE index ix_users_rep on dbo.users (reputation, id) include (displayname) with (maxdop=8, sort_in_tempdb = on);
That further reduced my query time from 12 ms to effectively 0 ms. This has been a great series, thanks for publishing it.
Very good! Thanks for watching, and for the kind words.