Aggregate Cache and Aggregate UDFs - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

To enhance performance, Teradata Database caches intermediate aggregate storage areas. The size of the aggregate cache is fixed at 1 MB.

If the number of intermediate storage areas exceeds the capacity of the aggregate cache, Teradata Database pages the least recently used intermediate storage areas to a spool file on disk, which causes a larger number of aggregation phases to occur and impacts performance.

For details on improving aggregate cache usage for an aggregate UDF, including how to determine the maximum number of intermediate storage areas, see “CREATE FUNCTION” in Teradata Vantage™ - SQL Data Definition Language Detailed Topics , B035-1184 .