The database was fast, but the data model was missing something. You needed a new column. Not next week. Not after a sprint. Now.
Adding a new column is simple in concept and dangerous in practice. Schema changes touch production. They impact query performance, indexing, and migrations. A single misstep can lock tables or corrupt data. The key is controlled execution.
First, define the column with precision. Use the smallest data type that fits the need. Avoid nulls when possible. Plan for indexing only if required for immediate query patterns. Each index carries a write cost.
Second, schedule the migration to minimize lock contention. For large tables, use an online schema change tool or a phased deployment with backfills. Monitor replication lag and transaction timings. Never assume "ALTER TABLE"will be instant.