File Formats & Compaction

Columnar formats, the small-file problem, and the maintenance nobody schedules.

6Questions
9Flashcards
3Terms
Questions

6 to work through

  1. beginner Multiple choice

    A team keeps three years of event data as gzipped CSV in object storage because it is simple and anything can read it. The table is now about 500 GB compressed and the daily dashboard query reads four of the 60 columns. What has the simplicity actually cost them?

    2 min answer
  2. intermediate

    A lakehouse team raises its compaction target file size from 128 MB to 1 GB and switches the write codec from Snappy to Zstandard. Query cost falls. What did they give up, and when does that bill arrive?

    2 min answer
  3. intermediate

    A platform's analytical queries slow steadily over months with no change in data volume per day. What is happening?

    2 min answer
  4. intermediate

    A table written by a streaming job has become unusably slow. It holds 400 GB across 8 million files. Diagnose and fix.

    2 min answer
  5. advanced

    A lakehouse table takes 400 GB a day from a streaming job that commits every 60 seconds across 24 partitions. Daily compaction rewrites yesterday's data and a weekly job re-sorts the last 30 days. Roughly how much compute does that maintenance need, what share of the bill is it, and which assumption dominates the error?

    3 min answer
  6. advanced

    Review this configuration. A 60 TB events table is partitioned by ingest_date and written by a streaming job that commits every 60 seconds. A compaction job runs hourly over the last 24 hours with a 512 MB target and sorts each file by event_timestamp. Snapshot expiry runs monthly with 90-day retention. 85% of queries filter on customer_id over a 7-day range. What would you remove, what would you change and what would you leave alone?

    3 min answer
Data Platform Architecture

Neighbouring topics

Data Platform Architecture

General material on designing the analytical data estate end to end.

2 quiz 8 cards 4 terms

Medallion Architecture

Bronze, silver and gold layers, and what each layer is allowed to guarantee.

5 quiz 9 cards 3 terms

Open Table Formats

Iceberg, Delta and Hudi — transactions, snapshots and time travel over object storage.

6 quiz 11 cards 5 terms

Warehouse, Lake & Lakehouse

Three answers to where analytical data lives, and the workloads that separate them.

6 quiz 5 cards 2 terms

Storage Layout & Partitioning

Partition keys, clustering, and the scan the query planner is left able to skip.

5 quiz 11 cards 3 terms

Ingestion Patterns

Full load, incremental, append-only and merge, and the source system each one suits.

5 quiz 11 cards 3 terms

CDC Pipeline Design

Building on a change stream: snapshot plus delta, tombstones, and merge into the target.

5 quiz 10 cards 4 terms

Batch Orchestration

DAGs, dependencies, retries, and the difference between a schedule and an orchestration.

3 quiz 9 cards 6 terms

Workflow Schedulers

Airflow, Dagster and their kin — where the control plane sits and what it can recover.

5 quiz 11 cards 3 terms

Transformation Frameworks

Declarative SQL transformation with tests, lineage and versioned models.

6 quiz 7 cards 3 terms

Dimensional Modelling

Facts, dimensions, grain, and the star schema's continued relevance.

4 quiz 9 cards 3 terms

Data Vault Modelling

Hubs, links and satellites, and the auditability and load parallelism they buy.

5 quiz 6 cards 3 terms

Slowly Changing Dimensions

Overwriting, versioning or timestamping attribute history, and the reporting each enables.

5 quiz 10 cards 4 terms

Analytics Cost Control

Scanned bytes, idle warehouses, and the query nobody knew was running hourly.

5 quiz 10 cards 4 terms

Workload Isolation

Keeping an analyst's query off the pipeline's compute, and both off the dashboard's.

5 quiz 9 cards 3 terms

Data Platform Tenancy

Multiple domains on shared storage and compute, with separable access and cost.

5 quiz 8 cards 3 terms

Reverse ETL

Pushing modelled analytical data back into operational systems, and who owns it then.

5 quiz 11 cards 3 terms

Data Virtualisation

Querying across sources without moving data, and the performance ceiling that imposes.

5 quiz 6 cards 4 terms

Warehouse Migration

Moving off a legacy warehouse with thousands of reports pointed at it.

5 quiz 11 cards 3 terms