QuestionQ133

VerifiedCost & Performance Optimisation

A production workload uses an always-on Structured Streaming job to incrementally apply updates from an external Change Data Capture feed to a Delta Lake table. When the data for this table was initially migrated, OPTIMIZE was run and most data files were resized to 1 GB. Auto Optimize and Auto Compaction were both enabled for the streaming production job. A recent data-file review shows that most files are smaller than 64 MB, even though every table partition contains at least 1 GB of data and the total table size exceeds 10 TB.

Which of the following most likely explains these smaller file sizes?

Explanation

For an always-on workload that incrementally applies changes with MERGE-style operations, Databricks can autotune to a smaller target file size to reduce MERGE duration. Table-size-based tuning would instead select a large target for a table exceeding 10 TB; current Databricks documentation specifies a 1 GB target at that scale. Z-ordering and Bloom filter indexes do not block file compaction.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!