Adding a new column should be fast, safe, and predictable. In SQL, this can mean running an ALTER TABLE command with precise data types and constraints. In NoSQL databases, it could involve updating schema definitions or handling dynamic keys at the application layer. The decision depends on performance, migration size, and the need for backward compatibility.
When you add a new column to large production databases, lock time matters. Some engines apply schema changes online, allowing inserts and selects to continue. Others block writes until the change completes. Always check documentation for online DDL support before running migrations.
Default values can speed up deployment. For example, in PostgreSQL, adding a non-null column with a default will rewrite the entire table unless you separate those steps. In MySQL or MariaDB, certain conditions allow instant addition of columns without heavy I/O.