Skip to content
Working Knowledge
GuideReferenceWorkshopWorkbenchBoardNotesAbout
Search⌘K

Browse categories

The Reference

01The Big Picture02Model Architectures03How Models Learn04How Models Run05Getting Models to Act06Language & Perception07Measuring Models08Safety & Alignment09Hardware & Infrastructure10Version Control11The Command Line12Databases & SQL13Environments & Packaging14Shipping & Collaboration15The Workbench
12 · Databases & SQL

Upsert

Insert or update in one step

InterCoders

A write that inserts a row if it does not exist, or updates it if it does—avoiding a separate check-then-write race.

Concrete example

`INSERT … ON CONFLICT DO UPDATE` in Postgres is an upsert.

Why it matters

Agents reach for this constantly when syncing records by id.

Nearby in Databases & SQL

TableRows and columns of dataTransactionAll-or-nothing changesWHEREFilter to matching rows
Previous term← Unit TestNext termVAE →

AtlasScope

I explain technical systems in plain English—and build practical tools for using them.

Read the guideWhere to beginOpen the workshopOpen the workbenchBrowse the referenceWhat Atlas is doing now

Contact & collaboration

GitHub ↗
Working Knowledge · A practical field guideBuilt and maintained by Atlas
HomeGuideSearchWorkbenchMore