Skip to main content

Iceberg MERGE at High Daily Volume

Data & AnalyticsPalaniappan P2 min read

Quick summary: On the order of 100,000 daily updates, a full copy of the Iceberg table is the wrong MERGE. Align the MERGE to the change feed and the partition. Compaction that rewrites the same files is the failure, not the design.

Key Takeaways

  • On the order of 100,000 daily updates, a full copy of the Iceberg table is the wrong MERGE
  • The Glue 5 Iceberg post and the S3 Tables reference own maintenance
  • On 4 October 2026 the open question is the change set: on the order of 100,000 updates a day, teams still copy the table or stack delete files until Athena scans regress
  • The CDC into S3 Tables article chooses the pipe
  • Athena's Iceberg version support still has to be checked against the Glue 5 post's v2 versus v3 note
Iceberg MERGE for about 100,000 daily updates: partition on the feed key, predicate on that partition, no full-table copy, compaction in a separate window
Table of Contents

Compaction is already covered. The Glue 5 Iceberg post and the S3 Tables reference own maintenance. On 4 October 2026 the open question is the change set: on the order of 100,000 updates a day, teams still copy the table or stack delete files until Athena scans regress. The CDC into S3 Tables article chooses the pipe. This page is what you do with the feed after it lands.

Athena’s Iceberg version support still has to be checked against the Glue 5 post’s v2 versus v3 note. This page was verified on 4 October 2026. Do not treat that note as frozen.

One MERGE

Partition the target on the key the feed updates. The MERGE predicate should hit that partition, not the whole table. Equality deletes, or a merge-on-read layout you have actually measured, replace a nightly INSERT OVERWRITE of every byte.

Copy-on-write of the entire table is the design to reject at this volume. It works when the change set is the table. It is how a 100,000-row feed turns into a rewrite of everything else.

Compaction stays on the lake article. Run it. Do not run it on the partition the MERGE just finished, in the same window. Maintenance that rewrites the incremental files works against the MERGE.

We recommend the MERGE over the full copy. The trade-off is a predicate you have to get right, and a compaction schedule you have to separate. A green copy job that rewrites the table is not an incremental pipeline.

The Athena cost post is where you look when the scan is the bill. Do not add a second cost essay here.

Where this fails

What to Do This Week

  1. Name the one change feed and the target table.
  2. Write the MERGE predicate next to the partition spec. If they do not match, fix that before you tune files.
  3. Stop any job that copies the whole table to apply the feed.
  4. Separate the compaction window from the MERGE window.
  5. If the feed does not exist yet, go back to the CDC article and the analytics service.

What This Post Doesn’t Cover

It does not teach compaction, snapshot expiry, or schema evolution. It does not choose Glue versus dbt. It does not explain two writers hitting one commit. That failure has its own article.

Frequently asked questions

How do we apply a large daily change set to Iceberg without rewriting the table?
One change feed, one MERGE, partitioned on the same key the feed updates. Equality deletes or a merge-on-read plan beat a nightly copy of the whole table when you are on the order of 100,000 updates. Compaction still runs, on a schedule that does not fight the MERGE for the same files.
When should we not copy the table instead of merging?
When the change set is a fraction of the table. A full copy rewrites bytes that did not change and hides the fact that you have no incremental design. Copy-on-write of the whole table is the pattern this page is replacing.
What could go wrong if compaction runs on the partition the MERGE just wrote?
The two jobs rewrite the same files. The MERGE's deletes and the compaction's rewrite contend, snapshots pile up, and the query you were trying to speed up gets slower. Separate the schedules. Compaction is maintenance. It is not the incremental design.
Is this the compaction article?
No. The Glue 5 Iceberg post and the S3 Tables reference own compaction, snapshot expiry, and schema evolution. This page owns MERGE cadence and partition alignment with the change feed.
What about two jobs committing at once?
That is the commit-conflict article. This page assumes one writer for the daily MERGE. Do not expand it into optimistic-concurrency theory.
Palaniappan P
Palaniappan P

Founder, FactualMinds · AWS Cloud Architect & AI Expert

AWS-certified cloud architect and AI expert with deep expertise in cloud migrations, cost optimization, and generative AI on AWS.

AWS ArchitectureCloud MigrationGenAI on AWSCost OptimizationDevOps

Recommended Reading

Explore All Articles »