Introduction
Upsert lets you update a record if it exists or add it if it doesn't. This saves time by doing both in one step.
When you want to add a new user or update their info if they already exist.
When syncing data from another system and you want to avoid duplicates.
When saving settings that might be new or changed.
When logging events and you want to update counts or create new entries.