LZCOMP Usage Notes - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Uncompressed character data in Vantage requires 2 bytes per character when storing Unicode data. LZCOMP compresses Unicode character input using the Lempel-Ziv algorithm, and returns the compressed result.

LZCOMP provides good compression results for long Unicode strings and medium-length strings with multiple repeating characters, but may be less effective for short strings.

Although you can call the function directly, LZCOMP is typically used with algorithmic compression (ALC) to compress table columns. If LZCOMP is used with ALC, nulls are also compressed if those columns are nullable.