TIL: Microsoft SQL Server Sparse Columns
- Storage Efficiency: Saves space for columns with lots of NULLs.
- Cost-Effective: Lowers disk usage & I/O.
- Wide Tables: Regular limit is 1024 columns; with sparse, up to 30,000.
- Performance: Boosts reads for sparse data; minor overhead on non-NULLs.
- Column Sets: Group sparse columns into one XML column for easier access.
- Microsoft SQL Server: The only major RDBMS with native sparse column support.
Comparable Concepts:
- NoSQL: Cassandra/HBase use dynamic, inherently sparse schemas.
- Other RDBMS: PostgreSQL (via JSONB/hstore) and Oracle (with compression techniques) can mimic sparse storage, but lack a direct sparse column feature.