what is upsert
UPSERT
does exactly what it says it does:
- If a record is missing it
INSERT
s it - Otherwise it
UPDATE
s it
This means keeping data current is idempotent - less code is needed so there are less opportunities to make mistakes.
UPSERT
does exactly what it says it does:
INSERT
s itUPDATE
s itThis means keeping data current is idempotent - less code is needed so there are less opportunities to make mistakes.