frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Choose DuckDB rather than SQLite

https://tracewayapp.com/blog/sqlite-vs-duckdb
61•rubenvanwyk•1h ago

Comments

pixelesque•51m ago
Even for row-based data?
brightball•48m ago
> DuckDB's columnar engine

That is workload specific. Title should be "Choose DuckDB rather than SQLite for Analytics" IMHO

ray_v•39m ago
Yes - it's a specific workload for sure. SQLite is still the GOAT when it comes to OLTP, but DuckDB is really becoming the GOAT in the OLAP world - I think DuckDB is simply amazing and truly an amazing piece of technology for anyone working with large amounts of data.
dataviz1000•21m ago
> SQLite is still the GOAT when it comes to OLTP, but DuckDB is really becoming the GOAT in the OLAP world

Can you explain this more, especially why SQLite is best at OLTP and what happens at scale?

storywatch•8m ago
Most people forget that clickhouse embedded exists
dangoodmanUT•21m ago
This. The title might as well be “Choose a hammer rather than a wrench (when driving nails)”
cognitiveinline•13m ago
Yeah, someone who has more tokens than simple sense.
sharpvik•48m ago
great research there
egeozcan•47m ago
TL;DR: SQLite was doing OLAP work it was never built for (and it was okay at it, I must add), and the perf. ceiling moves two orders of magnitude when you use something that's more fit for the purpose (DuckDB in this case).

TLDRTL;DR: If everything you do is column-store territory, use a column-store.

knuckleheads•47m ago
I ran this through an AI checker and it flagged half of it immediately. @dang, I know Substack just enabled Pangram integration, is there anyway you could get Y Combinator to spring for a Pangram subscription for the front page or something ?
nickpeterson•41m ago
Do you think venture capital firms are made of money?
ethin•34m ago
Yes? They certainly act like they are...
spooneybarger•31m ago
well played sir. well played.
tptacek•40m ago
AI comments aren't allowed on HN. AI submissions are.
MrBuddyCasino•36m ago
It would still be nice to mark them.
knuckleheads•19m ago
Yes, I am asking if that particular policy could be changed. A little AI here and there is fine, to each their own, but I would prefer not to read posts that are overwhelmingly so.
clumsysmurf•44m ago
Too bad Android doesn't have JDBC APIs. Getting the native binaries compiled on Android is the easy part, but there is no straightforward way to access it from Java. The Room APIs are tied to SQLite as well.
cynicalsecurity•40m ago
Great job on comparing apples to oranges. DuckDB is a columnar OLAP engine, SQLite is row-oriented OLTP. DuckDB should stomp SQLite in that particular use case.
tptacek•39m ago
Title, which is already synthetic, should be "Choose DuckDB rather than SQLite for Analytics Workloads".
otterley•38m ago
AI slop. The content might be valuable but the framing makes it too painful to read.

Please, folks, write with your own voice -- especially if it's for your business blog. It's good for you as an author (practice makes perfect) and it's good for your readers (whom you want to influence).

headz•29m ago
Agreed. It felt like I was reading a chat with Claude Code.
jaredezz•20m ago
Yeah I couldn't make it past the cliff title
ethin•36m ago
How are these two DB engines even comparable other than at the edges? They handle two completely separate workload types: one is more a general-purpose DB engine and the other is specifically for columnar datasets, analytics and the like -- of course a hand-tuned DB engine is going to destroy SQLite on any reasonable benchmark: SQLite wouldn't be optimized for that hand-tuned use-case whereas something like DuckDB is.
coldbrewed•26m ago
SQLite is _the_ tool of choice for local SQL databases with minimal overhead. If you needed a single file DB for an OLAP workload, SQLite was still the best option even if the technology wasn't an ideal fit. Duckdb is exciting specifically because SQLite/duckdb aren't comparable; we can stop shoehorning OLAP into an OLTP database.

I ran into this myself; I tried using SQLite to store the results of whole-internet rDNS scan and a count() over the entire DB could take 8 minutes. I used the wrong DB for the job and the narrative around SQLite/duckdb is around reckoning with perfectly reasonable limitations and tradeoffs that SQLite made.

datadrivenangel•19m ago
With indexes SQLite is very very fast even for aggregation at medium scales.

And DuckDB is reasonably fast for even single record writes. ~1000x slower than SQLite, but that's still pretty fast if you're only doing a few hundred writes per second or batching.

shubhamjain•35m ago
Despite its obvious advantages, the biggest drawback of DuckDB is its concurrency model [1]. If a process opens a database in read-write mode, it acquires an exclusive lock on the file. This prevents even simple read operations from other processes as long as the writer remains open. Maybe there's a simple workaround I haven't come across, but I found it to be quite a productivity killer.

So yes, all these benchmarks are great, but it wasn't so fun working with DuckDB when I had to close duckdb cli, just so a query in another script could run.

[1]: https://duckdb.org/docs/current/connect/concurrency

datadrivenangel•24m ago
Quack is now kind of a workaround for that limitation, as you can have a process with the lock offer read access to other processes. It's not perfect, but for that specific use case it's pretty good.
coldbrewed•23m ago
Duckdb has a server mode[1] which might alleviate some of those pain points. SQLite is a bit more precise in that only a single connection can write to the DB which provides more concurrency but still has pain points. For a single file DB either choice seems justifiable to manage complexity.

[1]: https://duckdb.org/2026/05/12/quack-remote-protocol

biophysboy•9m ago
You can have multiple read only processes. But yes, concurrent read mode and write mode is blocked
oathvz•24m ago
This is a bait and switch article. Compare apples and oranges, "oh btw look at our product".
datadrivenangel•19m ago
This is AI slop, but I really want to know more about their write patterns and how they were doing batches.
lanstin•9m ago
DuckDB is modern but written in C++ and crashes in production more than SQLite, which is old and it doesn’t really crash. you have to build in resilience to use DuckDb.
raro11•5m ago
> $16.49/month server [...] hetzner CCX13

That server is now $51.09 for those wondering See https://news.ycombinator.com/item?id=48540844

KOReader

https://koreader.rocks/
377•Cider9986•4h ago•128 comments

Handbook.md shows that long policy documents do not reliably govern agents

https://arxiv.org/abs/2607.25398
117•spIrr•2h ago•70 comments

Darktable

https://www.darktable.org/
73•siatko•2h ago•31 comments

TokenTown: A visual way to understand how LLMs work

https://laurentiugabriel.github.io/token-town/
43•laurentiurad•2h ago•7 comments

Hunter-gatherers introduced fish to a mountain lake 7000 years ago

https://www.newscientist.com/article/2580119-hunter-gatherers-introduced-fish-to-a-mountain-lake-...
38•stevenwoo•2d ago•25 comments

Shipping Godot VR and Porting to PSVR2: A Partial Post Mortem

https://www.claire-blackshaw.com/blog/2026/07/shipping-godot-vr-and-porting-to-psvr2-a-partial-po...
26•ibobev•2h ago•0 comments

More Tailscale tricks for your jailbroken Kindle

https://tailscale.com/blog/jailbroken-kindle-proxy-tun-modes
325•Error6571•10h ago•100 comments

Amiga Graphics Archive

https://amiga.lychesis.net/index.html
95•Bluestein•4h ago•16 comments

Document-borne AI worms can self-propagate through Copilot for Word

https://enklypesalt.com/posts/context-collapse-part3-ai-worming-through-word/
177•Canopy9560•3h ago•161 comments

Choose DuckDB rather than SQLite

https://tracewayapp.com/blog/sqlite-vs-duckdb
61•rubenvanwyk•1h ago•34 comments

Disrupting supply chain attacks on NPM and GitHub Actions

https://github.blog/security/supply-chain-security/disrupting-supply-chain-attacks-on-npm-and-git...
41•nyku•3h ago•10 comments

User Interfaces of the Demo Scene

https://www.datagubbe.se/scenegui/
323•zdw•10h ago•54 comments

SpecForge – A Platform for Authoring Formal Specifications

https://docs.imiron.io/v/0.5.10/en/tour.html
54•agnishom•4h ago•3 comments

A Texture Lookup Approach to Bézier Curve Evaluation on the GPU (JCGT)

https://jcgt.org/published/0015/02/01/
24•ibobev•2h ago•3 comments

Show HN: Write, simulate and synthesize VHDL/Verilog in the browser

https://risingedge.pro
6•wozniakpawel•5d ago•3 comments

SQLite in Production: Optimizing WAL Mode, Concurrency, and VFS Layers

https://micrologics.org/blog/sqlite-in-production-optimizing-wal-mode-concurrency-and-vfs-layers-...
171•ankitg12•7h ago•53 comments

Lisp moving Forth moving Lisp

https://letoverlambda.com/textmode.cl/guest/chap8.html
81•fallat•2d ago•21 comments

Codex Security

https://github.com/openai/codex-security
569•bakigul•18h ago•208 comments

Show HN: A verification browser for AI agents – 13ms windows, one-call checks

https://github.com/hongnoul/hwatu
7•hongnoul_•1h ago•1 comments

French musician Kavinsky found dead

https://www.euronews.com/culture/2026/07/29/dj-kavinsky-known-for-his-track-nightcall-found-dead-...
222•bristleworm•3h ago•52 comments

Ancient Rome's version of Google Maps: how long to reach the beach

https://www.euronews.com/culture/2026/07/02/ancient-romes-version-of-google-maps-how-long-to-reac...
57•gnabgib•6d ago•33 comments

San Francisco: Don't Fall for Industry Defense of Surveillance Pricing

https://www.eff.org/deeplinks/2026/07/san-francisco-dont-fall-industry-defense-surveillance-pricing
49•hn_acker•2h ago•5 comments

Show HN: Echologue – the private AI voice journal I built for myself

https://echologue.com/
20•arisAlexis•2h ago•10 comments

ALP: Adaptive lossless floating-point compression

https://github.com/cwida/ALP
23•fanf2•3d ago•3 comments

Valve Sponsors Work Bringing Open-Source RADV Driver to Windows

https://www.phoronix.com/news/Valve-Sponsors-RADV-Windows
28•DemiGuru•1h ago•6 comments

Show HN: I was tired of opening 2 tabs for every HN link, so I made a userscript

https://github.com/twalichiewicz/HNewhere
391•twalichiewicz•17h ago•105 comments

A.I. Companies Are Recruiting Electricians and Carpenters by the Thousands

https://www.nytimes.com/2026/07/29/business/economy/data-center-electricians-training.html
12•thm•33m ago•3 comments

Kalshi attacks a Wisconsin law banning election bets as 'voter suppression'

https://www.npr.org/2026/07/27/nx-s1-5905360/kalshi-wisconsin-election-betting-prediction-markets
43•hn_acker•1h ago•9 comments

Half-Life ported to Mac OS 9

https://mac-classic.com/news/half-life-ported-to-mac-os-9/
291•freediver•18h ago•139 comments

ReFrame – The EPaper Camera

https://reframe.camera/
195•phil294•15h ago•43 comments