Search code examples
amazon-web-servicesencodingamazon-redshiftzstd

AZ64 compression format performance


AWS Redshift has recently released their own new encoding format AZ64, for which they say:

Compared to ZSTD encoding, AZ64 consumed 5–10% less storage, and was 70% faster

When I use an ANALYZE COMPRESSION my_table I still receive ZSTD as an encoding format for all of its columns.

So is it really recommended as an encoding format over ZSTD? Shall I naively prefer AZ64 whenever possible to use it?


Solution

  • I got a reply from AWS Support on this question:

    TL;DR

    About your question preferring AZ64 instead of ZSTD were possible, yes you can do it.

    Given AZ64 provide better performance compared to ZSTD

    For further exaplanation:

    Yes, AZ64 is better than ZSTD. It has comparable compression, when compared with ZSTD but greatly better performance, which is something you would have already learned using. As of now ANALYZE COMPRESSION command doesn't support AZ64, also I don't have an ETA on when AZ64 will be available with ANALYZE COMPRESSION. I will suggest you to keep an eye on

    for any updates on AWS Redshift. I have verified this with the internal service team.

    ANALYZE COMPRESSION is an advisory tool it recommends the optimal column encoding depending upon the columns.