r/programming • • Oct 27 '26

DuckDB.NET 1.5.6.1: Reading Data Up to 12× Faster

https://www.giorgi.dev/database/duckdb-net-1-5-6-1-data-reader-performance/
105 Upvotes

26 comments sorted by

3

u/KeyboardG Oct 27 '26

This is a great update to see. I've been heavily using DuckDB.net and have mostly been working around the latency to the data store just getting meta data to perform the push-down filtering. I ended up just taking care of building the list of parquet files myself.

I'll try the new version later this week.

3

u/mcnamaragio Oct 27 '26

There are many more improvements: https://duckdb.net/docs/release-notes/1.5.html#1561 so definitely give it a try.

27

u/countkillalot Oct 27 '26

I've been keeping an eye on duckDB, it seems like a decent replacement for SQLite, but for most applications SQLite is still good enough. I'm having a hard time articulating a good production use case, other than maybe if you are running your own analytics suite? Maybe it could use a good Lucene plugin for full-text search?

37

u/longshot Oct 27 '26

duckDB is better suited for OLAP and SQLite is better suited for OLTP

4

u/goatsgomoo Oct 27 '26

Spin up a little prototype and test things out based on the usage patterns you're interested in. I've found that inserts in SQLite are much faster than in DuckDB, and even the queries that DuckDB are better at are still slower in DuckDB than SQLite until you get into thousands of rows, but that was just one use case I was checking, your mileage will vary.

1

u/MatthPMP Oct 27 '26

I haven't kept up in a while, are the forks of SQLite that replace its storage engine with a faster one no longer maintained ? I recall seeing huge performance gains with the SQLite+LMDB backend combo back in the day.

2

u/goatsgomoo Oct 27 '26

Oh I have no idea about any forks; stock SQLite turned out to be very much good enough for my purposes so I didn't bother looking into anything else. I only really needed to deal with tens of rows at a time, maybe up to a hundred, I just pushed the parameters on my prototype out of curiosity.

1

u/hyc_symas Oct 27 '26

Active development is on lumosql.org

1

u/MatthPMP Oct 28 '26

Thanks for the link !

2

u/itgforlife Oct 27 '26

It depends on what you need it for. SQLite is better for data storage and DuckDB is better for data analysis. But if you're working in a situation where either would work, then I would say that DuckDB has a better type system and it has better SQL support (QUALIFY, MERGE, etc.)

One gap that DuckDB used to have was related to triggers (it didn't support them.) But they fixed that recently in their 2.0 update.

7

u/ShikadaSorel Oct 27 '26

Well written article and excellent performance gains.

7

u/Darwin226 Oct 27 '26

The article seems 100% AI generated

3

u/atrocia6 Oct 27 '26

No idea about that, but his bio acknowledges:

I stay hands-on in the code, increasingly through AI coding agents like Claude Code and Codex.

5

u/mcnamaragio Oct 27 '26

Who doesn't use AI today for coding?

11

u/FullPoet Oct 27 '26

A lot of people.

9

u/ShikadaSorel Oct 27 '26

My internal AI detector didn't trigger here, but you could be right. The article is still a very well written technical article. It's information dense. Topics are in depth and show relevant code and disassembly where I would like to see it. The results are clear. I dunno, doesn't seem that far off from the official yearly performance improvements that MS publishes.

10

u/Darwin226 Oct 27 '26 edited Oct 27 '26

The tables are exactly what Claude generates, down to X->Y and ", unchanged", but a more direct tell is that everything needs to be written out as a table or at least a bullet point list. The sentences use the newer "it's not an emdash, it's a colon or a semicolon" style. A ton of sentences are in the "summary of n things: thing 1, thing 2,..." format.

I use AI all the time, but your comment kind of baited me into opening the link and I was greeted with claudish which I'm personally sick of reading all day, so I thought I'd write a comment to counterbalance yours.

3

u/ShikadaSorel Oct 27 '26

Fair enough, sorry for the unintentional bait!

2

u/Hacnar Oct 27 '26

Some people say that about everything that gets posted nowadays. Low effort comments, but hopefully people will start pushing it away soon.

7

u/Darwin226 Oct 27 '26

Ok but in this case there's no doubt.

0

u/Hacnar Oct 27 '26

I don't know and I don't care. The article is good. That's all that matters to me.

3

u/Darwin226 Oct 27 '26

Yup, and I care so I wrote the comment.

-2

u/Hacnar Oct 28 '26

Too bad that people don't care about the important things.

-13

u/cheezballs Oct 27 '26

Another database project another day.

17

u/deanrihpee Oct 27 '26

isn't duckdb already out for quite a while?