All Questions
Data Modeling hard

Why do Columnar Databases (like Snowflake/Redshift/ClickHouse) achieve much better compression than Row-based DBs?

  1. A They utilize a proprietary ZIP-based file format that is natively optimized by the physical disk controller to compress data as it is written to the hardware.
  2. B They implement a specialized 'Lossy Storage' model that automatically removes all NULLs and redundant whitespace characters from the dataset before indexing.
  3. C Columnar data is homogeneous (same type), allowing for aggressive, domain-specific schemes like Bit-Packing and Run-Length Encoding (RLE) to collapse repeating values.
  4. D They strictly limit the total volume of data that can be stored in each partition to ensure that the compression dictionary never exceeds the size of the CPU cache.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions