For practical examples, getting started guidance, and compression best practices, see the Table and Column Compression overview.
Supported codecs
LZ4
Description: Fast lossless compression algorithm optimized for speed over compression ratio. This is the default compression codec in Firebolt. Performance characteristics:- Compression speed: Very fast
- Decompression speed: Very fast
- Typical compression ratio: Good
- CPU usage: Very low
- High-throughput data ingestion
- Frequently accessed data requiring fast queries
- Real-time analytics workloads
- When CPU resources are limited
ZSTD (Zstandard)
Description: Modern compression algorithm providing excellent balance between compression ratio and speed with configurable compression levels. Parameters:COMPRESSION_LEVEL: Compression level (1-22, default: 1)- Levels 1-3: Fast compression, good for online workloads
- Levels 4-10: Balanced performance
- Levels 11-22: High compression, slower writes
| Level | Compression Speed | Compression Ratio | Use Case |
|---|---|---|---|
| 1 | Fast | Good | Real-time data |
| 3 | Fast | Better | General workloads |
| 7 | Moderate | Better | Balanced storage/speed |
| 15 | Slow | Excellent | Archival data |
ZSTD compression levels higher than 3 typically reach the point of diminishing returns for most workloads.
- General analytics workloads (levels 1-3)
- Archival data storage (levels 10+)
- Data with good compressibility (JSON, text, logs)
See also
- Table and Column Compression - Practical guide with examples, best practices, and getting started information