The query hit the database. A new column had to be added. The whole system would feel it.
Adding a new column is not just another migration. It changes how data is stored, indexed, and retrieved. It affects queries, joins, and caching. In high-load systems, the wrong approach can lock tables, spike latency, and block writes.
First, decide where the new column belongs. Schema design is strategy. Keep related data close, but avoid coupling unrelated concerns. Check existing indexes. Adding a column might require composite indexes or changes to constraints.
Next, choose the right type. Match it to the data as tightly as possible. Smaller types use less space and allow faster scans. Avoid nullable columns unless the absence of data is common and meaningful. Nulls can complicate query logic and indexing.