Adding a new column is not just a schema change. It is an event that alters storage layout, query plans, and even the cost of every read and write. In many systems, the moment you add a column, indexes recalculate, caches invalidate, and replication streams carry more bytes.
Before creating a new column, decide on its type with precision. Use the smallest data type that can hold the needed values. Avoid NULLs when possible to maintain predictable storage and indexing. If the column will be queried often, consider adding it to the right indexes from the start. Doing so prevents slow queries and expensive migrations down the road.
In SQL, adding a new column can be as simple as:
ALTER TABLE orders ADD COLUMN status VARCHAR(20) NOT NULL DEFAULT 'pending';
But in production, that command has weight. On large tables, ALTER TABLE can lock writes for seconds, minutes, or worse. Modern databases offer online schema changes to reduce downtime, but these come with their own trade-offs in CPU usage, disk space, and replication lag.