frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Choose DuckDB rather than SQLite

https://tracewayapp.com/blog/sqlite-vs-duckdb
51•rubenvanwyk•55m ago

Comments

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

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

ray_v•23m 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•5m 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?

dangoodmanUT•5m ago
This. The title might as well be “Choose a hammer rather than a wrench (when driving nails)”
sharpvik•32m ago
great research there
egeozcan•31m 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•31m 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•25m ago
Do you think venture capital firms are made of money?
ethin•18m ago
Yes? They certainly act like they are...
spooneybarger•15m ago
well played sir. well played.
tptacek•24m ago
AI comments aren't allowed on HN. AI submissions are.
MrBuddyCasino•21m ago
It would still be nice to mark them.
knuckleheads•3m 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•28m 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•24m 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•23m ago
Title, which is already synthetic, should be "Choose DuckDB rather than SQLite for Analytics Workloads".
otterley•23m 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•13m ago
Agreed. It felt like I was reading a chat with Claude Code.
jaredezz•4m ago
Yeah I couldn't make it past the cliff title
ethin•20m 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•10m 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•4m 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•19m 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•8m 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•7m 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

oathvz•8m ago
This is a bait and switch article. Compare apples and oranges, "oh btw look at our product".
datadrivenangel•3m ago
This is AI slop, but I really want to know more about their write patterns and how they were doing batches.

Show HN: Homage to the Pharmageddon Demo by the Paramedics

https://pharma.greg.technology/
1•gregsadetsky•40s ago•0 comments

Pangram 4

https://www.pangram.com/blog/introducing-pangram-4
1•nsagent•53s ago•0 comments

How Standup Is Similar to Gothic Architecture

https://psychotechnology.substack.com/p/how-standup-is-similar-to-gothic
1•eatitraw•1m ago•0 comments

Sparse Attention with Persistent State Machines – High‑Sparsity LLM Accelerator

https://zenodo.org/records/21679919
1•yusuke_esaka•2m ago•0 comments

PostgreSQL's MVCC is bad. So is everyone else's

https://boringsql.com/posts/mvcc-bad-bad/
1•masklinn•3m ago•0 comments

Know Your Feedback Loop

https://unstack.io/know-your-feedback-loop
1•ScottWRobinson•3m ago•0 comments

I'm Prepping for a WW3 Food Apocalypse and Famine [video]

https://www.youtube.com/watch?v=_3GH_ORndnE
1•Bender•3m ago•0 comments

The Project of Software Is Complete

https://freddiedeboer.substack.com/p/the-project-of-software-is-complete
2•pbmonster•3m ago•1 comments

Increase Bank

https://increase.com/articles/announcing-increase-bank
1•allanbreyes•3m ago•0 comments

Run Kimi K3 on a local computer

https://github.com/sqliteai/waste
1•marcobambini•4m ago•0 comments

GPT-5.6 vs. Claude Fable 5 for Physical AI, which performs best?

https://juliahub.com/blog/frontier-models-physical-ai-evaluation
1•mbauman•5m ago•0 comments

NoWreck v0.4.0 – – Deterministic AI Verifier

https://github.com/AstralXVoid/NoWreck
1•AstralXVoid•5m ago•0 comments

Show HN: WFY24 A performance weather widget with 2km hyper-local forecasting

https://www.wfy24.com/en/widgets
1•weatherfun•5m ago•0 comments

Google shuts down Nobel Prize winning AlphaFold

https://www.engadget.com/2225849/google-shuts-down-alphafold/
2•NordStreamYacht•5m ago•0 comments

Why do OpenAI's GPT-2 weights beat mine?

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-1-intro
1•gpjt•6m ago•0 comments

Substackers Say New AI Detection Tool Is a 'Witch Hunt'

https://www.404media.co/substackers-say-new-ai-detection-tool-is-a-witch-hunt/
1•Brajeshwar•6m ago•1 comments

Doing Okay-ish with AI at the AI-proof competition

https://blog.greg.technology/2026/07/26/doing-okayish-with-ai-at-the-ai-proof-competition.html
1•evakhoury•7m ago•0 comments

I'm Going to Be Silent

https://departure.blog/im-going-to-be-silent/
1•speckx•7m ago•0 comments

A Plea for Lean Software (Niklaus Wirth)

https://liam-on-linux.dreamwidth.org/88032.html
1•tosh•8m ago•0 comments

Ask HN: What percentage of your tech is out of curiosity not requirements

1•sahil423•9m ago•0 comments

Stripe Just Wants a Number

https://blog.exe.dev/billable-facts
2•cbrewster•10m ago•0 comments

Trojan models are trivial to make

https://aisle.com/blog/the-model-that-fixes-your-code-might-hack-the-linux-kernel
1•bluepat•11m ago•0 comments

Loop Engineering Is a Pattern, Not a Feature

https://iii.dev/blog/loop-engineering-is-a-pattern-not-a-feature/
1•appplemac•12m ago•0 comments

My Best Mental Models I Use to Work with AI

https://metedata.substack.com/p/015-the-mental-models-i-use-to-work
1•young_mete•13m ago•0 comments

Moonshot AI Raises $3.5B at $35B Valuation

https://www.bloomberg.com/news/articles/2026-07-29/china-s-moonshot-ai-passes-funding-goal-to-hit...
1•mfiguiere•13m ago•0 comments

Show HN: Qwen Scribe – local transcription and dictation for Apple Silicon

https://github.com/VladUZH/qwen-scribe
1•sidclaw•14m ago•0 comments

Show HN: Vostorq – I built the anti-Slack after working at a Slack-first company

https://www.vostorq.com/
1•Mike-Kelner•15m ago•0 comments

Controllable Generative Modeling in Minecraft by Training on Billions of Cubes

https://pub.sakana.ai/dream-cubed/
2•vicgalle_•16m ago•1 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
5•thm•17m ago•0 comments

Show HN: find Your misplaced iPad

https://github.com/matthiasgoergens/find-ipad
3•eru•18m ago•1 comments