SQL Server 2025: Faster Backups with ZSTD Compression!
SQL Server 2025: Faster Backups with ZSTD Compression
Hi Guys!
One of the most practical improvements in SQL Server 2025—and a very welcome one for DBAs constantly fighting backup windows—is the new support for Zstandard (ZSTD) compression. This modern compression algorithm delivers faster backups without significantly increasing CPU or sacrificing storage savings.
What’s New Compared to Previous Versions
Up to SQL Server 2022, backup compression relied on MS_XPRESS, with optional acceleration via Intel QAT (or software fallback using QATzip). But now with SQL Server 2025, Microsoft introduces ZSTD: an open-source, high-speed compression algorithm with flexible levels and excellent performance-to-compression ratios.
How to Use It
No new UI, no new tools. It’s all in T-SQL:
BACKUP DATABASE YourDB
TO DISK = 'YourPath\backup.bak'
WITH COMPRESSION (ALGORITHM = ZSTD, LEVEL = LOW|MEDIUM|HIGH);
- LOW is the default and fastest
- MEDIUM and HIGH offer stronger compression but take more time
Performance Benchmarks (Real World)
🧪 Pythian (50 GB DB, local disk D:)
- No Compression: 24 s (1882 MB/s)
- MS_XPRESS: 4 min 30 s (179 MB/s, CPU 17%)
- ZSTD LOW: 2 min 10 s (362 MB/s, CPU 15%)
- ZSTD MEDIUM: 3 min 30 s (226 MB/s)
- ZSTD HIGH: 18 min 10 s (43 MB/s)
✅ Result: ZSTD LOW cuts backup time in half compared to MS_XPRESS, with similar or better CPU usage and compression.
🧪 Anthony Nocentino (389 GB DB, backup to S3)
- No Compression: 390 GB → 259 s (1533 MB/s, CPU 35%)
- MS_XPRESS: 219 GB → 441 s (902 MB/s, CPU 85%)
- ZSTD LOW: 267 GB → 246 s (1621 MB/s, CPU 80%)
- ZSTD MEDIUM: 211 GB → 603 s (660 MB/s)
- ZSTD HIGH: 209 GB → 1112 s (358 MB/s)
✅ Result: ZSTD LOW is faster than uncompressed, with near-MS_XPRESS compression, much lower CPU, and significantly faster backup times.
🧪 Haloui / dbi-services (StackOverflow DB, 8 vCPU VM)
- MS_XPRESS: ~290 s (563 MB/s)
- ZSTD LOW: ~171 s (954 MB/s)
✅ Result: ~41% faster than MS_XPRESS, with comparable CPU usage.
What This Means for You
- ZSTD LOW is your go-to for fast backups: often faster than uncompressed, yet still provides good compression.
- ZSTD MEDIUM is useful when space matters more than time.
- ZSTD HIGH gives maximum compression—but it’s slow, and mostly suited for archival scenarios.
Final Thoughts
SQL Server 2025's ZSTD compression offers a serious upgrade for backup performance. If your current full backups are eating up your maintenance windows, try:
WITH COMPRESSION (ALGORITHM = ZSTD, LEVEL = LOW)
You’ll often see backup durations cut in half, while still benefiting from compression—without hammering your CPU.
As always: benchmark in your environment. Every workload is different, and the best setting is the one that balances your speed, CPU, and storage constraints.
Comments
Post a Comment