Skip to content
Theory · ClickHouse: Columns, MergeTree, Sort Key, Partitions · lesson 11 of 13

Mutations: UPDATE and DELETE

At the start of the chapter we noted that correcting one sale in the tape archive is hard. The archivist finds the bundle it lies in, rewinds the tapes that carry the fix into a new bundle, and throws the old bundle away. He works when he is free, and while he rewinds, the analysts read the old bundle.

In this lesson

  • ALTER TABLE … UPDATE and DELETE
  • A mutation runs in the background
  • Lightweight delete and update
  • Why mutations are heavy
  • Common mistake
  • Key points