This strategy helps when your unique key is not truly unique (multiple rows per key need to be
fully refreshed).
Parameters
Example: Refresh order line items
An order table usesorder_id as the unique key. When a corrected order arrives, Prophecy deletes all existing rows with the matching order_id and inserts the incoming rows. Orders with new IDs are inserted normally.
Existing target table
Incoming dataset
Resulting target table
Because
order_id is the unique key, Prophecy deletes all existing rows with matching keys before inserting the incoming rows. In this example, both existing rows for order 101 are removed and replaced with the three incoming rows. Order 102 remains unchanged because it has no matching incoming rows, and order 103 is inserted as a new order.
