DataBurst Data Engineering Wiki - Roadmap Step-by-Step: https://wiki.databurst.tech/docs/roadmap/ - Introduction: https://wiki.databurst.tech/docs/roadmap/introduction/ - Programming Language: https://wiki.databurst.tech/docs/roadmap/programming-language/ - Python: https://wiki.databurst.tech/docs/roadmap/programming-language/python/ - Java: https://wiki.databurst.tech/docs/roadmap/programming-language/java/ - Scala: https://wiki.databurst.tech/docs/roadmap/programming-language/scala/ - Go: https://wiki.databurst.tech/docs/roadmap/programming-language/go/ - Rust: https://wiki.databurst.tech/docs/roadmap/programming-language/rust/ - Operating System: https://wiki.databurst.tech/docs/roadmap/operating-system/ - Windows: https://wiki.databurst.tech/docs/roadmap/operating-system/windows/ - Linux: https://wiki.databurst.tech/docs/roadmap/operating-system/linux/ - Networking: https://wiki.databurst.tech/docs/roadmap/networking/ - Protocols: https://wiki.databurst.tech/docs/roadmap/networking/protocols/ - TCP/IP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/tcp/ - DNS: https://wiki.databurst.tech/docs/roadmap/networking/protocols/dns/ - HTTP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/http/ - HTTPS: https://wiki.databurst.tech/docs/roadmap/networking/protocols/https/ - SSH: https://wiki.databurst.tech/docs/roadmap/networking/protocols/ssh/ - UDP: https://wiki.databurst.tech/docs/roadmap/networking/protocols/udp/ - Concepts: https://wiki.databurst.tech/docs/roadmap/networking/concepts/ - IP addressing: https://wiki.databurst.tech/docs/roadmap/networking/concepts/ip-addressing/ - DHCP: https://wiki.databurst.tech/docs/roadmap/networking/concepts/dhcp/ - Firewalls: https://wiki.databurst.tech/docs/roadmap/networking/concepts/firewalls/ - VPN: https://wiki.databurst.tech/docs/roadmap/networking/concepts/vpn/ - General Software Engineering Skills: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/ - OAuth: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/oauth/ - JWT: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/jwt/ - GraphQL: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/graphql/ - REST: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/rest/ - gRPC: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/grpc/ - Caching: https://wiki.databurst.tech/docs/roadmap/general-software-engineering-skills/caching/ - Web Frameworks and API Development: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/ - Python: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/python/ - Go: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/go/ - Java: https://wiki.databurst.tech/docs/roadmap/web-frameworks-and-api-development/java/ - Version Control System: https://wiki.databurst.tech/docs/roadmap/version-control-system/ - git: https://wiki.databurst.tech/docs/roadmap/version-control-system/git/ - Version Control System Hosting: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/ - Github: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/github/ - Gitlab: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/gitlab/ - BitBucket: https://wiki.databurst.tech/docs/roadmap/version-control-system-hosting/bitbucket/ - Distributed Systems Concepts: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/ - CAP: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/cap/ - PACELC: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/pacelc/ - Sharding: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/sharding/ - Clock: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/clock/ - ACID: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/acid/ - Replication: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/replication/ - Distributed Transactions: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/transaction/ - Indexing: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/indexing/ - Batch and Stream Processing: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/batch-and-stream-processing/ - Consistency vs Eventual Consistency: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/consistency-vs-eventual-consistency/ - Normalization or Denormalization: https://wiki.databurst.tech/docs/roadmap/distributed-systems-concepts/normalization-or-denormalization/ - SQL Fundamentals: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/ - Basic SQL: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/basic-sql/ - Advanced SQL: https://wiki.databurst.tech/docs/roadmap/sql-fundamentals/advanced-sql/ - Databases: https://wiki.databurst.tech/docs/roadmap/databases/ - Relational: https://wiki.databurst.tech/docs/roadmap/databases/relational/ - NoSQL: https://wiki.databurst.tech/docs/roadmap/databases/nosql/ - Columnar: https://wiki.databurst.tech/docs/roadmap/databases/nosql/columnar/ - Document Based: https://wiki.databurst.tech/docs/roadmap/databases/nosql/document-based/ - Key-Value: https://wiki.databurst.tech/docs/roadmap/databases/nosql/key-value/ - Time Series: https://wiki.databurst.tech/docs/roadmap/databases/nosql/time-series/ - Vector: https://wiki.databurst.tech/docs/roadmap/databases/nosql/vector/ - Graph: https://wiki.databurst.tech/docs/roadmap/databases/nosql/graph/ - NewSQL: https://wiki.databurst.tech/docs/roadmap/databases/nosql/newsql/ - Data Modeling: https://wiki.databurst.tech/docs/roadmap/data-modeling/ - Star Schema (Ralph Kimball): https://wiki.databurst.tech/docs/roadmap/data-modeling/star-schema/ - Snowflake: https://wiki.databurst.tech/docs/roadmap/data-modeling/snowflake/ - Data Vault: https://wiki.databurst.tech/docs/roadmap/data-modeling/data-vault/ - Data Management Architecture: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/ - Relational Data Warehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/relational-data-warehouse/ - Data Lake: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-lake/ - Modern Data Warehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/modern-data-warehouse/ - Data Fabric: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-fabric/ - Data Mart: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-mart/ - Data Lakehouse: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-lakehouse/ - Data Mesh: https://wiki.databurst.tech/docs/roadmap/data-management-architecture/data-mesh/ - Data Integration: https://wiki.databurst.tech/docs/roadmap/data-integration/ - ETL: https://wiki.databurst.tech/docs/roadmap/data-integration/etl/ - ELT: https://wiki.databurst.tech/docs/roadmap/data-integration/elt/ - CDC: https://wiki.databurst.tech/docs/roadmap/data-integration/cdc/ - Reverse ETL: https://wiki.databurst.tech/docs/roadmap/data-integration/reverse-etl/ - Storage: https://wiki.databurst.tech/docs/roadmap/storage/ - Block Storage: https://wiki.databurst.tech/docs/roadmap/storage/block-storage/ - Object Storage: https://wiki.databurst.tech/docs/roadmap/storage/object-storage/ - File Formats and Serialization: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/ - File Formats: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/ - CSV: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/csv/ - JSON: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/json/ - Parquet: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/parquet/ - XML: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/file-formats/xml/ - Serialization: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/ - Avro: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/avro/ - Protocol Buffers: https://wiki.databurst.tech/docs/roadmap/file-formats-and-serialization/serialization/protobuf/ - Query Engine: https://wiki.databurst.tech/docs/roadmap/query-engine/ - Apache Hive: https://wiki.databurst.tech/docs/roadmap/query-engine/hive/ - SparkSQL: https://wiki.databurst.tech/docs/roadmap/query-engine/sparksql/ - Trino: https://wiki.databurst.tech/docs/roadmap/query-engine/trino/ - Presto: https://wiki.databurst.tech/docs/roadmap/query-engine/presto/ - Data Architecture: https://wiki.databurst.tech/docs/roadmap/data-architecture/ - Kappa: https://wiki.databurst.tech/docs/roadmap/data-architecture/kappa/ - Lambda: https://wiki.databurst.tech/docs/roadmap/data-architecture/lambda/ - Data Processing: https://wiki.databurst.tech/docs/roadmap/data-processing/ - Pipeline Orchestration: https://wiki.databurst.tech/docs/roadmap/pipeline-orchestration/ - Messaging and Streaming Platform: https://wiki.databurst.tech/docs/roadmap/messaging-and-streaming-platform/ - Data Governance: https://wiki.databurst.tech/docs/roadmap/data-governance/ - Data Quality: https://wiki.databurst.tech/docs/roadmap/data-governance/data-quality/ - Data Visualization: https://wiki.databurst.tech/docs/roadmap/data-visualization/ - Containerization: https://wiki.databurst.tech/docs/roadmap/containerization/ - Docker: https://wiki.databurst.tech/docs/roadmap/containerization/docker/ - Podman: https://wiki.databurst.tech/docs/roadmap/containerization/podman/ - containerd: https://wiki.databurst.tech/docs/roadmap/containerization/containerd/ - Container Orchestration: https://wiki.databurst.tech/docs/roadmap/container-orchestration/ - Kubernetes: https://wiki.databurst.tech/docs/roadmap/container-orchestration/kubernetes/ - Docker Swarm: https://wiki.databurst.tech/docs/roadmap/container-orchestration/docker-swarm/ - Apache Mesos: https://wiki.databurst.tech/docs/roadmap/container-orchestration/apache-mesos/ - CI/CD: https://wiki.databurst.tech/docs/roadmap/cicd/ - DataOps: https://wiki.databurst.tech/docs/roadmap/cicd/dataops/ - Infrastructure as Code: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/ - Configuration Management: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/configuration-management/ - Infrastructure Provisioning: https://wiki.databurst.tech/docs/roadmap/infrastructure-as-code/infrastructure-provisioning/ - Observability: https://wiki.databurst.tech/docs/roadmap/observability/ - Logging: https://wiki.databurst.tech/docs/roadmap/observability/logging/ - Monitoring: https://wiki.databurst.tech/docs/roadmap/observability/monitoring/ - Tracing: https://wiki.databurst.tech/docs/roadmap/observability/tracing/ - Glossary: https://wiki.databurst.tech/docs/roadmap/glossary/
$ clickhouse-client -q "SELECT city, sum(amount) FROM orders GROUP BY city"
# Columnar and Wide-Column Databases A **columnar (column-oriented) database** stores each column of a table separately on disk, so a query that needs 3 of 200 columns reads only those 3, and similar values packed together often compress 5 to 10 times. This makes columnar engines such as **ClickHouse, Apache Druid, Apache Pinot, Snowflake and BigQuery** the standard for analytics: scans and aggregations over billions of rows. The name causes a classic confusion. **Wide-column stores** such as **Cassandra, HBase, ScyllaDB and Bigtable** are a different thing: they group data by row key into "column families" and are built for fast writes and key lookups, not analytical scans. Both families often share the same storage engine design, the **LSM tree**, explained below. ## Two families, one confusing name | | Column-oriented (analytical) | Wide-column (operational) | |---|---|---| | Stores together | All values of one column | All columns of one row key (partition) | | Typical query | `SUM(amount) GROUP BY city` over a billion rows | `get user 42's last 50 events` | | Workload | OLAP: big scans, aggregates | OLTP at scale: huge write rates, key lookups | | Schema | Fixed columns, SQL | Sparse, flexible columns per row; CQL or API | | Joins | Yes (with limits on some engines) | No; denormalize, one table per query | | Examples | ClickHouse, Druid, Pinot, StarRocks, DuckDB, Snowflake, BigQuery, Redshift | Cassandra, ScyllaDB, HBase, Google Bigtable | Why column storage reads less and compresses better is animated on the [Parquet]({{< relref "/docs/roadmap/file-formats-and-serialization/file-formats/parquet" >}}) page: Parquet is the same idea as a file format. ## Writing fast: the LSM tree Updating values in place on disk means random I/O. Most wide-column stores (Cassandra, HBase, Bigtable, ScyllaDB) and many time-series databases instead use a **log-structured merge tree (LSM)**: buffer writes in memory, write sorted immutable files sequentially, and merge them in the background. ClickHouse's MergeTree uses the same idea without the memtable: each insert writes a sorted, immutable "part" directly, and parts are merged in the background. {{< fig kicker="$ INSERT INTO events (key, value) VALUES ('k31', ...)" title="The LSM write path: buffer, flush, compact" >}} MEMORY DISK CLIENT write k31 MEMTABLE sorted by key, in RAM k07 · k12 WAL append-only commit log FILE 1k01–k40 FILE 2k03–k35 + k31 · k31 ack ✓ FILE 3k07–k31 flush (sequential write) MERGED FILE · k01–k40 latest version per key, tombstones dropped GET k12 → memtable → newest file → older … newest first; bloom filters skip files without the key
  1. An LSM engine has a sorted memtable in RAM, an append-only WAL, and immutable sorted files on disk (SSTables in Cassandra and RocksDB).
  2. A write is first appended to the WAL. Appending is sequential, so it is fast, and it makes the write survive a crash.
  3. Then it goes into the memtable and the client gets its ack. No data file was touched.
  4. When the memtable is full it is flushed as a new sorted file in one sequential write. The WAL for it can now be discarded.
  5. In the background, compaction merge-sorts small files into bigger ones, keeping only the newest version of each key and dropping deleted ones.
  6. Reads pay the price: check the memtable, then files from newest to oldest, stopping at the first match. Bloom filters and compaction keep this cheap.
{{< /fig >}} The trade-off: **writes are cheap and sequential, reads may touch several files, and compaction uses background I/O.** B-tree databases such as PostgreSQL make the opposite trade. When you see "write amplification" or "compaction storms" in Cassandra or ClickHouse tuning guides, this is the mechanism. ## Popular engines - **[ClickHouse](https://clickhouse.com/)**: open-source columnar OLAP database, originally built at Yandex and now developed by ClickHouse Inc. Very fast on a single node, scales out with shards. Logs, product analytics, observability. - **[Apache Druid](https://druid.apache.org/)** and **[Apache Pinot](https://pinot.apache.org/)**: real-time OLAP stores that ingest from Kafka and serve sub-second queries to user-facing dashboards. Pinot came from LinkedIn. - **[DuckDB](https://duckdb.org/)**: embedded, in-process columnar engine. The "SQLite for analytics", great for local work and pipelines. - **Cloud warehouses**: Snowflake, BigQuery, Amazon Redshift, Databricks SQL. Columnar storage, separated from compute. - **[Apache Cassandra](https://cassandra.apache.org/)** and **[ScyllaDB](https://www.scylladb.com/)**: wide-column, masterless, multi-datacenter writes. Cassandra 5.0 (2024) added storage-attached indexes and vector search. - **[Apache HBase](https://hbase.apache.org/)** and **Google Bigtable**: wide-column stores with strongly consistent rows. HBase runs on HDFS and is mostly found in older Hadoop estates. ## Common mistakes - **Calling Cassandra "columnar" and using it for analytics.** A full-table aggregate in Cassandra is slow and expensive. Replicate the data into an OLAP engine. - **Single-row inserts into ClickHouse.** Each insert creates a part that must later be merged. Batch inserts (thousands of rows) or use async inserts. - **Updates and deletes as a hot path.** Columnar and LSM engines handle them as rewrites or tombstones; frequent ones hurt. - **Bad partition keys in wide-column stores.** One huge partition (for example all events of a popular customer) becomes a hotspot. ## Learning Resources - [C-Store: A Column-oriented DBMS](https://web.stanford.edu/class/cs345d-01/rl/cstore.pdf) (2005): the paper behind modern column stores - [The Log-Structured Merge-Tree](https://www.cs.umb.edu/~poneil/lsmtree.pdf) (1996): the original LSM paper - [ClickHouse documentation: MergeTree](https://clickhouse.com/docs/engines/table-engines/mergetree-family/mergetree) - [Cassandra documentation: storage engine](https://cassandra.apache.org/doc/latest/cassandra/architecture/storage-engine.html) - [Apache Druid design](https://druid.apache.org/docs/latest/design/) and [Apache Pinot docs](https://docs.pinot.apache.org/) - *Database Internals*, Alex Petrov: chapters on LSM trees and B-trees