Adding a new column should be fast, safe, and reversible. In reality, it often locks tables, spikes CPU, and risks downtime. The right approach depends on table size, replication setup, and write volume. A careless ALTER TABLE can stall production. A planned migration keeps latency flat and queries clean.
When you add a new column, define its purpose before you type a command. Choose the right data type, default value, and nullability. For large datasets, avoid blanket backfills that rewrite every row at once. Instead, use phased updates or background jobs to populate values.
On distributed systems, schema changes must respect replication lag. Always apply DDL in a way that lets replicas catch up without skipped transactions. Some systems offer ADD COLUMN with metadata-only changes; others rewrite files. Read the storage engine documentation before you act.