Understand and Avoid the No More Spool Space Issue in Teradata
Posted on Jun 22, 2020 in Computer Science
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **
Knowledge About Spool Space in Teradata
- Volatile Tables and subqueries are both built in Spool
Causes of No More Spool Issue
- The main cause of "no more spool space" errors is usually data skew.
Some Potential Solutions
-
Choose a good primary index when creating a data tabel.
-
Reduce the number of rows and columns you’re working with
-
Break down a big query into smaller ones.
-
Use Subqueries to Reduce Joined Rows and Columns
-
reduce spool with COMPRESS
References
https://robertlambert.net/2018/02/escaping-teradata-purgatory-select-failed-2646-no-more-spool-space/