Forum Discussion

cw88's avatar
cw88
Icon for Helper IV rankHelper IV
3 years ago
Solved

Warehouse: Parallel update on status table fails

Hi,  i have the following situation: Load data from several csv/xls files in warehouse staging tables Update a status table with the max timestamp of staging tables Load and update is located i...
  • AndyDDC's avatar
    3 years ago

    This is because the Warehouse uses optimistic concurrency (snapshot isolation) when writing/reading from tables (based on what delta supports).  You can get clashes when multiple update statements hit the same table in parallel.  Inserts don't cause issues so you may have to modify your process to insert an initial status and then write another row with the new status and timestamp.

     

    I go through transactions behaviour here https://www.serverlesssql.com/transaction-isolation-in-fabric-warehouses/

     

    hope it helps