The query returned fast, but something was missing: a new column. You need it in the schema, indexed, reliable, and deployed without downtime. Every second matters when the database is live and users are active.
Adding a new column in production is simple in theory, but the real world brings risks. Table locks, migration failures, and data corruption can stall a release. The process must be precise: define the schema change, plan the migration, and verify the results. For large datasets, you cannot just run ALTER TABLE and hope for the best. Use an online migration tool or orchestrate the change in phases to avoid blocking writes.
First, decide if the new column allows NULL values or needs a default. Default values on large tables can cause table rewrites and delays. Instead, add the column without a default, then backfill data in batches. This keeps operations smooth and prevents long locks. For indexes, create them after the backfill to avoid contention.