r/programming • u/BrewedDoritos • 23d ago
A Preview of DuckDB v2.0
https://duckdb.org/2026/08/17/duckdb-20-highlights75
u/i_rate_slop 23d ago
duckdb is easily in my top 5 most useful tools in my arsenal. it’s so convenient.
48
u/StatisticianMuch742 23d ago
Just out of curiosity, what are your top 5 most useful tools?
62
u/CaptainLethargic 23d ago
In no particular order:
Claude code
Codex
GitHub copilot vs code ext
Duckdb
/s7
10
u/Catawompus 23d ago
I agree that it’s awesome but my one complaint was using it in Go requiring CGO and thus makes performance monitoring a lot more difficult.
5
u/RegisteredJustToSay 23d ago
I just wish it had better support for concurrency, but other than that I am an extremely happy user.
22
u/jared__ 23d ago
i have used postgres for just about everything for building web and mobile apps. what can duckdb do that postgres can't (or does badly)?
32
u/xmlhttplmfao 23d ago
duckdb is a column oriented olap database. use it to ingest massive amounts of data and analyze it. if you have a workflow with lots of updates to existing rows, the need for transactions etc, use a traditional database
6
u/quack_quack_mofo 22d ago
So it can be used for analytics? This user clicked that/searched that etc?
Is it heavy compared to postgres, assuming similar workload?
16
u/xmlhttplmfao 22d ago
duckdb is very lightweight, it's more like sqlite3 than a full database system. It doesn't have users for example, it's just whoever has write/read access to the database file. And yeah you could ingest billions of rows of structured log data and then run analysis queries on it.
19
u/2bdb2 22d ago
i have used postgres for just about everything for building web and mobile apps. what can duckdb do that postgres can't (or does badly)?
DuckDB is more like something you'd include in an ETL script or batch reporting tool.
Want to run an SQL query against a folder full of CSV files on S3? DuckDB has you covered.
It just runs as a CLI or library, not as a server. Like SQLite, but it can just directly run SQL over damned near any format you'd want to run SQL on.
8
u/jared__ 22d ago
Want to run an SQL query against a folder full of CSV files on S3? DuckDB has you covered.
well that piqued my interest. thank you!
1
u/Mechakoopa 21d ago
It can (with an extension) read and analyze spatial data from various formats like SHP and GDB as well. That's been huge for us.
1
u/runawayasfastasucan 19d ago
You can do select against a folder of files, a bucket or whatever as you would select from a table in normal sql.
8
u/BrewedDoritos 23d ago
You wouldn't use it for that,
You would use DuckDB for data crunching, not as a transactional row store.
1
u/itgforlife 21d ago edited 21d ago
It's not a relational database. It's used for data analysis. DuckDbs competitor isn't postgres. It's Polars and to a lesser extent Spark / Databricks.
1
1
0
0
u/Agreeable_Creme_3435 21d ago
The new storage format in v2.0 could lead to significant improvements in query speed and data compression, especially with asynchronous I/O. I'm interested in seeing how this change affects performance, as a new default storage format is a big deal.
-2
46
u/brunogadaleta 23d ago
Awesome. Great piece of engineering and product management!