BEGIN OPTIMIZE Command | Specifying Data Temperatures | Teradata Vantage - BEGIN OPTIMIZE - Advanced SQL Engine - Teradata Database

Teradata® Virtual Storage

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
gsg1592014116145.ditamap
dita:ditavalPath
gsg1592014116145.ditaval
dita:id
B035-1179
lifecycle
previous
Product Category
Teradata Vantage™

Initiates immediate, high-priority migrations necessary to move cylinders modified by the FORCE command to appropriate classes of storage. Normal migration is a background process with a lower priority.

BEGIN OPTIMIZE initiates optimization on all nodes and all tables of the system, not just the tables on which the FORCE command was recently used.

Optimization can cause extremely heavy loads on system resources, and have a negative impact on system performance. If BEGIN OPTIMIZE is used on a production system, it should be used only during scheduled maintenance windows.

Syntax

{ BEGIN OPTIMIZE | BEG OPT }

Usage Notes

Migrations resulting from BEGIN OPTIMIZE occur at the maximum possible speed, without regard to potential impacts to existing workloads. Because cylinders marked HOT or COLD using the FORCE command are at the maximum temperature extremes, these cylinders are likely to be the first selected for migration, depending on available space.

If space on storage media of appropriate performance grade is not available, some cylinders are moved out of FAST and SLOW storage locations to make room for the HOT and COLD table data, respectively.