Algorithmic Compression | Database Design | VantageCloud Lake - Algorithmic Compression - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Vantage software includes standard compression algorithms, in the form of UDFs, which you can use to compress data by table column. You can also create custom compression and decompression algorithms in UDF format.

When column values are unique, algorithmic compression (ALC) may provide better compression results than MVC. When columns have repeated values, you can use ALC and MVC on the same column, but the system does not apply ALC to any value covered by MVC.

ALC functions best on infrequently used data because of the amount of CPU required for decompress/recompress when compressed data is accessed. ALC is considered more difficult to implement than the other compression methods.

You can use algorithmic compression to compress table columns with the following data types:
  • ARRAY
  • BYTE
  • VARBYTE
  • BLOB
  • CHARACTER
  • VARCHAR
  • CLOB
  • JSON, with the following restrictions
  • DATASET, with the following restrictions
  • TIME and TIME WITH TIME ZONE
  • TIMESTAMP and TIMESTAMP WITH TIME ZONE
  • Period types
  • Distinct UDTs, with the following restrictions
  • System-defined UDTs, with the following restrictions

Related Information

Topic Reference
Specifying a UDF in the COMPRESS USING phrase of a CREATE TABLE or ALTER TABLE statement
System-defined external UDFs for algorithmic compression and decompression Compression/Decompression Functions
How to specify those scalar UDFs in a table definition
Guidelines for selecting an algorithmic compression functions https://downloads.teradata.com/extensibility/articles/selecting-an-alc-compression-algorithm
Evaluating algorithmic compression UDFs Download the test suite from https://downloads.teradata.com/download/extensibility/algorithmic-compression-test-package