When you add a new column to a database table, you’re not just altering structure—you’re touching the path of every read and write. In SQL, the ALTER TABLE command is the tool. On large datasets, this can be expensive. Plan for locking behavior, index rebuilds, and storage impact.
Use explicit data types. Avoid NULL defaults unless they serve a purpose. If the new column is part of a query filter or join, create the right index after population, not before. This avoids index churn during the backfill.
For transactional systems or high-traffic APIs, consider online schema change tools. They let you add a new column without blocking queries. Test the migration on a replica. Measure query times before and after. Store changes in version control with your migrations so deployments are traceable.