Ways to avoid eager spool operations on SQL Server
问题 I have an ETL process that involves a stored procedure that makes heavy use of SELECT INTO statements (minimally logged and therefore faster as they generate less log traffic). Of the batch of work that takes place in one particular stored the stored procedure several of the most expensive operations are eager spools that appear to just buffer the query results and then copy them into the table just being made. The MSDN documentation on eager spools is quite sparse. Does anyone have a deeper