SQL Lazy Spool Eager Spool

https://www.simple-talk.com/sql/learn-sql-server/showplan-operator-of-the-week-lazy-spool/

The Lazy Spool is actually very similar to the Eager Spool; the difference is just that Lazy Spool reads data only when individual rows are required. It create a temporary table and build this table in a “lazy” manner; that is, it reads and stores the rows in a temporary table only when the parent operator actually asks for a row, unlike Eager Spool, which reads all rows at once. To refer back to some material I covered in the Eager Spool explanation, the Lazy Spool is a Non-blocking operator, whereas Eager Spool is a Blocking Operator.

原文地址:https://www.cnblogs.com/huaan011/p/6020347.html