The query was fast, but the schema refused to change.
Adding a new column should be instant. In most systems, it is not. Schema migrations block writes, lock tables, and risk downtime. Large datasets make this worse. Adding a column to billions of rows is slow and expensive. In distributed databases, the complexity multiplies.
A new column changes how your application reads and writes. It affects indexes, constraints, and replication. If the database engine must rewrite the entire table, operations slow and costs rise. That is why modern teams seek migration methods that avoid full rewrites.
Efficient column addition depends on capabilities like metadata-only changes, lazy backfill, and versioned schema management. Many SQL engines now support adding nullable columns without rewriting data. This is faster because only the table definition changes; the existing rows remain untouched until needed.