MongoDB.live, free & fully virtual. June 9th - 10th. Register Now MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Compression with zlib, snappy and Zstd

Hi everyone,

I have an environment with low use of cpu, zlib compression is more compacted than snappy but uses more cpu although my environment has a lot free cpu. Do you recommend me changing to zlib or there some pitfalls ?

In 4.2 there is a new compression Zstd, anyone knows has experience with the new compression.

Thanks.

Alexandre Araujo

@Alexandre_Araujo Zstandard is meant to compare very favourably to zlib (similar compression ratio with improved compression/decompression speed), however the ultimate outcome will depend on your data and workload. The best way to compare is by testing in a representative environment for your use case.

For more information including some general benchmarks, see the Zstandard site.

Regards,
Stennie