i have a few columns that i know won't be used initially. is it a good practice to add columns only when needed or just leave those extra columns there?
is it just a little more space in the header or every row?
i have a few columns that i know won't be used initially. is it a good practice to add columns only when needed or just leave those extra columns there?
is it just a little more space in the header or every row?
Depends on the column type to some extent.
Variable sized columns (such as varchar(nn)) will only use 4 bytes (approx) per row.
I would add columns only when required, since it is less likely that redundant columns will be added and never removed.
Yes, they do still take up space, if only a couple bytes per row (depends on the column type). If you're not going to use them until later, what good is it to keep them there?