internalsGet Pro

Module 12 · Lesson 8 of 12Pro

Compaction and table maintenance

Level
Advanced
Topic
Data lakes and lakehouses
Reading time
18 min

When you finish this page you can

  1. Explain what each Iceberg commit leaves behind (data files, a snapshot, manifests, a metadata file) and why a table that commits every few minutes slows down without maintenance.
  2. Name the four maintenance jobs and what each removes: rewrite_data_files, expire_snapshots, remove_orphan_files and rewrite_manifests.
  3. Choose a snapshot retention period from what it costs in metadata and what it buys in recovery.
  4. Schedule a safe nightly maintenance job in Airflow and estimate what it costs.
  1. The small files problem17 min
  2. Inside a table format: snapshots and transactions18 min
  3. Time travel and rollback for tables17 min

2,784 files in two and a half days

is an online store in India. Its apps record about 200 million click events a day, and Meera, a data engineer, moves them into the store’s on S3 in AWS’s Mumbai region. Analysts and the ML team read them there with Spark, Snowflake and DuckDB.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan