Docs
Browse Docs
Glossary

Upsert

A single operation that updates a row if its key already exists and inserts a new row if it does not. The name joins update and insert.

An upsert is only as good as its key. If the key arrives in a slightly different form, such as with a trailing space or without its leading zeros, a duplicate is inserted where an update was intended.

Where it comes up

See also

  • Primary keyA column, or set of columns, whose value is unique for every row and identifies it: a customer number, an order ID.
  • MergeCombining two or more records judged to describe the same thing into a single record. The word is also used for joining two tables, and for merged cells in a spreadsheet; in data cleaning the first meaning is the usual one.
  • DuplicateA record that describes the same real thing as another record in the same dataset. An exact duplicate matches in every field; a near duplicate differs in spelling, format, or detail.

Karg checks for many of these when it profiles a file, applies the fixes it is confident about, and sets the rest aside for your review. See how it works, or have our team clean your data for you.