• My pleasure, Matija!

    Was the query using a lot of tempdb space? I'm curious to know how OPTION RECOMPILE made it stop doing so. Maybe a wrong cached plan?

    -- Gianluca Sartori