Urgent.News

What's breaking now, across thousands of outlets.

Tech

Apache Iceberg Query Performance: A Practical Guide

Iceberg is the standard. Snowflake, Databricks, AWS, and every major query engine read and write it natively. The format question is settled. The performance question is not. Most production Iceberg tables are slower than they need to be — not because of anything wrong with the format, but because the physical state of the table has degraded over time. Thousands of small files from streaming…

Abstract editorial illustration

Iceberg is the file format standard adopted by major cloud query engines like Snowflake, Databricks, AWS Athena, and more. Despite being the standard, most production Iceberg tables perform poorly due to degraded physical state over time. Factors causing slow performance include thousands of small files from streaming writes, fragmented manifests across numerous snapshots, scattered but uncorrelated data within files, and accumulated delete files from CDC pipelines.

This leads to engines scanning significantly more data than necessary, resulting in slower query planning and increased S3 API costs.

Iceberg query performance is determined by three levels of elimination during scan planning: manifest list pruning, file-level data skipping, and row group pruning. Each level's effectiveness heavily depends on the table's physical state. As streaming writes generate many tiny files daily and sort keys lose relevance as access patterns evolve, tables degrade over time.

Maintenance tasks like compaction, snapshot expiration, and manifest rewriting need careful sequencing to be effective. Furthermore, there's no feedback loop for optimizing table performance without monitoring query patterns and degradation.

Two approaches exist for maintaining Iceberg table performance: intelligent continuous optimization through an autonomous control plane or manual methods using SQL procedures and cron jobs. The intelligent continuous optimization approach, represented by LakeOps, connects to query engines, observes table state and query patterns, and automatically applies optimizations without human intervention or static configurations.

Key features include query-aware data layout, which sorts tables based on actual query filters, significantly reducing data scanned per query. Other capabilities include efficient compaction, manifest rewriting, snapshot expiration, and orphan cleanup, all optimized together. The manual approach requires manual decisions on when, how, and on which tables to perform maintenance tasks and configure sort orders, which can become outdated and less effective over time.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Support for data centres goes back 40 years

There are more than 60 data centres in New Zealand, but a new report says growing concerns over their proliferation could harm the country's potential to become a regional hub serving Australia and…

More from Sunday 2 August →