Adding a new column is more than an act of storage—done right, it reshapes how data flows through your system. Whether in SQL or a NoSQL store, understanding the mechanics keeps your migrations fast, safe, and reversible.
In SQL, adding a column with ALTER TABLE will lock the table in some databases. On high-traffic systems, that lock can cause timeouts or dropped connections. Use online DDL when available (ALTER TABLE ... ADD COLUMN with ALGORITHM=INPLACE in MySQL, ADD COLUMN in PostgreSQL with careful default handling) to avoid downtime. Avoid setting a default on very large tables unless your engine defers the write, because backfilling can be expensive.
For NoSQL databases like MongoDB, adding a new key to documents is schema-free, but the application layer must handle missing values gracefully. Schema validation rules can enforce the new field once backfilling or phased rollout is complete.