The query ran fast and clean until the schema changed. Then everything slowed.
Adding a new column alters the shape of your data. It can speed up development, or break production if handled carelessly. A new column in SQL or any relational database means touching migrations, indexes, application logic, and often APIs. It is not just an extra field — it is a change in the contract between your data and every service that consumes it.
When you create a new column, decide on type, nullability, and default values. Mistakes here will haunt you in downstream queries. For large datasets, adding a column can lock tables or trigger heavy I/O. Avoid downtime with online schema changes, phased rollouts, or background migration jobs.
Indexing a new column improves read performance for frequent queries. But indexes cost write speed and storage. Measure before adding. Remove unused indexes after confirming no queries depend on them.