<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MERGE on vrajat</title><link>https://vrajat.com/tags/merge/</link><description>Recent content in MERGE on vrajat</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 30 Nov 2026 10:00:00 +0530</lastBuildDate><atom:link href="https://vrajat.com/tags/merge/index.xml" rel="self" type="application/rss+xml"/><item><title>DuckDB's MERGE into Iceberg Is Single-Threaded</title><link>https://vrajat.com/posts/duckdb-merge-iceberg-single-threaded/</link><pubDate>Mon, 30 Nov 2026 10:00:00 +0530</pubDate><guid>https://vrajat.com/posts/duckdb-merge-iceberg-single-threaded/</guid><description>&lt;blockquote>
&lt;p>In DuckDB, an UPDATE on an Iceberg table is a delete plus an insert. A CDC MERGE has both &lt;code>WHEN MATCHED THEN UPDATE&lt;/code> and &lt;code>WHEN NOT MATCHED THEN INSERT&lt;/code>, so it has two actions that append to the table, and DuckDB runs them
one after the other on one thread. The scan and the join still run in parallel, but the writes run on one thread.
New rows are buffered, spilling to disk, before they are written. Size a CDC MERGE into Iceberg for one writing
core and a fast temp disk, not for threads, and load CDC snapshots using INSERT.&lt;/p></description></item></channel></rss>