Adding a new column should be simple. Yet in production, every column carries weight. It changes the shape of your data model, your queries, and sometimes your entire application logic. Whether it’s a string, an integer, or a JSON field, a column alters schema and impacts performance.
In SQL, you define it with ALTER TABLE. Choose the data type. Set constraints. Decide if NOT NULL applies. Add default values to prevent breaking inserts. Each choice has implications for index usage, disk space, and query plans.
In NoSQL, adding a new field might be schema-less. But schema-less is not impact-less. You still need to handle migrations inside code, ensure existing documents can handle the change, and validate consistency.