- JSON_COMPRESS
- JSON_DECOMPRESS
- TD_LZ_COMPRESS
- TD_LZ_DECOMPRESS
You can use TD_LZ_COMPRESS to compress JSON data; however, Teradata recommends that you use JSON_COMPRESS instead because the JSON_COMPRESS function is optimized for compressing JSON data.
JSON_COMPRESS and JSON_DECOMPRESS can be used to compress JSON type columns only. These functions cannot be used to compress columns of other data types.
You cannot create your own compression and decompression user-defined functions to perform algorithmic compression on JSON type columns. You must use the functions previously listed.
You can use ALC to compress columns that store JSON data using one of the binary storage formats (BSON or UBJSON).
For more information about compression functions, see Compression/Decompression Functions.
For information about the COMPRESS and DECOMPRESS phrases, see COMPRESS and DECOMPRESS Phrases.