-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
Query Execution
We know upfront whether we may need to spill to disk during sort or not. So, we can build an optimized SortStage by eliminating all the code dealing with spilling in compile time by templating allowDiskUse parameter .