Adding a new column seems simple. It is not. Done wrong, it locks tables, slows queries, and triggers downtime. When data rows number in the millions, a careless change can cascade through the system.
A new column in SQL alters table structure in place. The database must update the schema metadata. Depending on the engine, adding a nullable column with a default value might rewrite every row. That rewrite can block reads and writes.
Plan the change. First, check the database engine’s behavior for ALTER TABLE … ADD COLUMN. PostgreSQL often handles nullable columns fast, but adding defaults before version 11 rewrites the table. MySQL with InnoDB can perform certain adds online, but not all. Read the documentation for your version.
If possible, add the new column without a default, then backfill data in small batches. This avoids long locks. Use indexed writes sparingly during backfill to keep load predictable. Monitor replication lag if you run replicas. A poorly planned schema change can cause replicas to fall behind and crash under load.