The database was running hot, and the product team needed a new column before the next deploy.
A new column changes the shape of your data. Done right, it expands capability without breaking queries or blocking writes. Done wrong, it locks tables, slows transactions, and causes production downtime. Precision matters.
When adding a new column, define its purpose first. Decide on the data type, nullability, and default value before touching the schema. In relational databases, an ALTER TABLE command creates the new column. In large datasets, this can be expensive, so evaluate the impact. Use online schema change tools where supported to avoid long locks.
If the new column requires backfilled data, perform the migration in two stages. First add the column with default settings, then backfill rows in small batches to reduce load. Monitor replication lag if your database is replicated.