<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Merge Conflicts During Concurrent Delta Table Updates in Databricks Free Edition Help</title>
    <link>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157704#M803</link>
    <description>&lt;P&gt;Thank for your response&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 04:49:12 GMT</pubDate>
    <dc:creator>SantiNath_Dey</dc:creator>
    <dc:date>2026-05-27T04:49:12Z</dc:date>
    <item>
      <title>Merge Conflicts During Concurrent Delta Table Updates</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157511#M798</link>
      <description>&lt;P&gt;I have a requirement where I need to run multiple concurrent runs on a particular table, however some merges fail and some merges execute. how can i handle this&lt;/P&gt;&lt;P&gt;I have a requirement where I need to run multiple concurrent runs on a particular table, however some merges fail and some merges execute. how can i handle this. I have tried below option -1 . Partition by primary key : Do merge update on parttion key still getting merge conflict issue.2. retry option : using this option merge conflict issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a requirement where I need to run multiple concurrent operations on a particular table. However, some merge operations fail while others succeed. How can I handle this?&lt;BR /&gt;I have tried the following options:&lt;BR /&gt;Partitioning by primary key – I performed merge updates on the partition key, but still encountered merge conflict issues.&lt;BR /&gt;Retry option – I used a retry mechanism, but the merge conflicts still persist.&lt;/P&gt;&lt;P&gt;There is option to over-come this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 16:45:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157511#M798</guid>
      <dc:creator>SantiNath_Dey</dc:creator>
      <dc:date>2026-05-22T16:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Conflicts During Concurrent Delta Table Updates</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157512#M799</link>
      <description>&lt;P&gt;I have a requirement where I need to run multiple concurrent operations on a particular table. However, some merge operations fail while others succeed. How can I handle this?&lt;BR /&gt;I have tried the following options:&lt;BR /&gt;Partitioning by primary key – I performed merge updates on the partition key, but still encountered merge conflict issues.&lt;BR /&gt;Retry option – I used a retry mechanism, but the merge conflicts still persist.&lt;/P&gt;&lt;P&gt;There is option to over-come this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2026 16:47:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157512#M799</guid>
      <dc:creator>SantiNath_Dey</dc:creator>
      <dc:date>2026-05-22T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Conflicts During Concurrent Delta Table Updates</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157683#M802</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are your options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Best fix: stop using partitioned target tables for concurrent MERGE&lt;/STRONG&gt; &lt;STRONG&gt;Partitioned Delta tables do not support row-level concurrency&lt;/STRONG&gt;. If you can, move the target to &lt;STRONG&gt;unpartitioned + Liquid Clustering + deletion vectors&lt;/STRONG&gt;. For &lt;STRONG&gt;MERGE&lt;/STRONG&gt;, use &lt;STRONG&gt;DBR 14.3 LTS+&lt;/STRONG&gt; (or &lt;STRONG&gt;14.2 with Photon&lt;/STRONG&gt;). This is the cleanest way to reduce concurrent merge conflicts.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;If you must keep partitions, make the MERGE predicate fully explicit&lt;/STRONG&gt; Don’t just join on PK. Include the &lt;STRONG&gt;target partition filters in the MERGE condition&lt;/STRONG&gt; so each job reads only its own partition slice; otherwise separate jobs can still scan overlapping data and conflict.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;If jobs can touch the same rows, serialize writes&lt;/STRONG&gt; Even with row-level concurrency, &lt;STRONG&gt;conflicts can still happen when operations read/modify the same rows&lt;/STRONG&gt;, and with &lt;STRONG&gt;high concurrency&lt;/STRONG&gt; some conflicts still occur. In that case, use a &lt;STRONG&gt;staging table + one downstream MERGE job&lt;/STRONG&gt; (or queue by business key) instead of many direct concurrent MERGEs.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Recommendation:&lt;/STRONG&gt; &lt;STRONG&gt;Option 1&lt;/STRONG&gt; if you can change the table design. If not, use &lt;STRONG&gt;Option 2&lt;/STRONG&gt;, and if the same keys can arrive together, add &lt;STRONG&gt;Option 3&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 15:14:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157683#M802</guid>
      <dc:creator>Lu_Wang_ENB_DBX</dc:creator>
      <dc:date>2026-05-26T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Conflicts During Concurrent Delta Table Updates</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157704#M803</link>
      <description>&lt;P&gt;Thank for your response&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 04:49:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/merge-conflicts-during-concurrent-delta-table-updates/m-p/157704#M803</guid>
      <dc:creator>SantiNath_Dey</dc:creator>
      <dc:date>2026-05-27T04:49:12Z</dc:date>
    </item>
  </channel>
</rss>

