---
title: Iceberg MERGE at High Daily Volume
description: 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.
url: https://www.factualminds.com/blog/iceberg-merge-incremental-processing-at-scale/
datePublished: 2026-11-24T00:00:00.000Z
dateModified: 2026-11-24T00:00:00.000Z
author: palaniappan-p
category: Data & Analytics
tags: aws, apache-iceberg, amazon-s3-tables, aws-glue, amazon-athena
---

# Iceberg MERGE at High Daily Volume

> 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.

Compaction is already covered. The [Glue 5 Iceberg post](https://www.factualminds.com/blog/aws-glue-5-apache-iceberg-modern-etl/) and the [S3 Tables reference](https://www.factualminds.com/blog/aws-modern-data-lake-s3-tables-iceberg-reference-architecture-2026/) 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](https://www.factualminds.com/blog/cdc-into-s3-tables-lakehouse/) 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.

> **Reproduce this:** Copy the [MERGE worksheet](https://www.factualminds.com/examples/architecture-blog-2026/iceberg-merge/merge-worksheet.md). One feed, one table, one predicate. If you have two feeds, you have two designs.

## 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](https://www.factualminds.com/blog/athena-query-cost-optimization-partition-compress-cache-iceberg/) is where you look when the scan is the bill. Do not add a second cost essay here.

## Where this fails

> **What broke:** Lab, 4 October 2026. Not a customer account. A daily MERGE of about 100,000 updates was followed by a compaction job on the same partition. Snapshots grew and the next query scanned more, not less. Detection: both jobs named the same partition in the same hour. Recovery: move compaction off that window. Lesson: compaction is maintenance, not the MERGE.

## 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](https://www.factualminds.com/blog/cdc-into-s3-tables-lakehouse/) and the [analytics service](https://www.factualminds.com/services/aws-data-analytics/).

## 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.

## FAQ

### 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.

---

*Source: https://www.factualminds.com/blog/iceberg-merge-incremental-processing-at-scale/*
