Community

SQL Server UPSERT Patterns and Antipatterns

(Michael J. Swart) In 2015, Postgres added support for ON CONFLICT DO UPDATE to their INSERT statements. Their docs say that using this syntax guarantees an atomic INSERT or UPDATE outcome; one of those two outcomes is guaranteed, even under high concurrency.

Read More - Register for Free Membership