Columns with excessive null values can be defined as SPARSE columns.
Needs 4 bytes extra for non-null fixed length data type value and 0 for null.
So, there's a tradeoff.
The smaller the data type, the more no. of null values required to save space.
Properties of Sparse Column:-
geography |
text |
|
geometry |
timestamp |
|
image |
user-defined data types |

Join the conversation! Your thoughts help the community grow.