Adding a new column seems simple. In practice, it is a schema change with consequences for performance, data integrity, and deployment speed. Doing it right means weighing default values, nullability, and type selection before the migration hits production. Every choice echoes through queries, indexes, and storage design.
A new column changes row size. Larger rows can force page splits, slow down sequential reads, and increase index maintenance costs. If the column is indexed, write performance can drop under high load. Engineers often overlook how new columns impact replication lag or lock contention during migration.
For relational databases, use ALTER TABLE with caution. On small tables, the change might be instant. On large tables, it can block writes for minutes or hours unless the database supports online DDL. Consider running schema changes in off-peak hours or breaking them into smaller steps, especially in distributed systems where schema sync matters across shards.