logoalt Hacker News

jitllast Saturday at 5:51 PM2 repliesview on HN

DuckDB is similar as an in process SQL database, but lacking btree-style ordered indexes makes it a poor performer in key lookups and order-by / range scans if your table is any size larger than trivial.

It’s the classic OLAP (DuckDB) vs OLTP (SQLite) trade off between the two. DuckDB is very good at many things but most applications that need a traditional SQL DB will probably not perform well if you swap it over to DuckDB.


Replies

geysersamlast Saturday at 6:29 PM

Duckdb has optional adaptive radix tree indexing (https://duckdb.org/docs/stable/sql/indexes.html)

show 1 reply
Kinranylast Saturday at 6:03 PM

That's surprising, surely OLAP use cases also need key lookups?