Tag

#columnar

Databases

ClickHouse vs TimescaleDB: one hour of sensor data, two storage engines (and two benchmarks that disagree)

Timescale's own launch post says TimescaleDB is 1.9x faster than ClickHouse on one benchmark and 6.8x slower on another. Both are true. We follow one hour of sensor readings through a TimescaleDB hypertable (chunks, Postgres rows, then Hypercore batches of up to 1,000) and through ClickHouse's MergeTree (parts, column files, 8,192-row granules), then read both vendors' published benchmarks with who built them on the label.

Databases

DuckDB vs SQLite: same question, two shapes of file (and when to use which)

DuckDB and SQLite are both one-file databases that live inside your program, but SQLite stores rows in B-tree pages and DuckDB stores compressed columns in row groups of 122,880 rows. In ClickBench's published results a sum over 100 million rows takes SQLite 405 seconds and DuckDB 0.061; in a 2022 paper co-written by SQLite's own developers, SQLite ran small transactions 10 to 500 times faster. Storage, concurrency, file size, Python, DuckDB's SQLite extension, and a decision card.

Databases

What is a data lakehouse? Data warehouse vs data lake vs lakehouse

A data lakehouse in simple terms: open Parquet files on cheap object storage (about $23 per TB-month on S3 Standard), plus a table format like Iceberg or Delta Lake and a catalog, so Spark, Trino, DuckDB, Snowflake and ClickHouse can share one copy. How we got there from the 1988 warehouse and the 2010 data lake, what the paper that named it admits in a footnote, the real trade-offs, and when you don't need one.

Databases

Iceberg vs Delta Lake: same Parquet, two diaries

Apache Iceberg and Delta Lake both store your rows in ordinary Parquet files. The difference is the diary on top: Iceberg's metadata tree with a catalog pointer vs Delta's _delta_log of numbered JSON commits. One INSERT, DELETE and UPDATE traced through both, partitioning, deletion vectors, where each is native, UniForm and XTable, and how to pick.