Tag

#duckdb

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

DuckDB vs Polars: one query, two engines, three benchmarks with three different winners

In the Polars team's own benchmark, one setting took Polars from 152 seconds to 24 at scale factor 100, and DuckDB still finished first at 19.7. What actually differs between an in-process SQL database and a DataFrame library: lazy plans, memory, Polars 2's streaming default, Arrow interop, and what each benchmark (and who runs it) really shows.