• Jeff Moden (2/27/2010)


    Paul White (2/27/2010)


    Chris,

    Turns out all that is needed to get rid of the index spool is to define the clustered index as UNIQUE. Given that information, a better plan is produced (without the extra index spool), and the recursive CTE now starts to return results after four seconds on my laptop. Well done!

    Paul

    Was that for the 100k rows, Paul?

    Sure was, yes.