HN Hall of Fame Weekly email

Many Small Queries Are Efficient in SQLite

Screenshot of www.sqlite.org captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 6 calendar years, with breakout response in 3 of them.

submissions
9
submitters
7
observed span
2020–2026
peak thread · 342 comments
542 pts
latest 20+ return · 2026-01-24
189 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

If you haven't tried SQLite, please do. For years I ignored SQLite and used MySQL (it does the job) but once you see how fast SQLite is, and advantages of having a DB contained in a single file... just go play around with SQLite instead of ignoring it for years like me. It's neat.

I am using SQLite on paperless-ngx (an app to manage pdf [4]). It is quite difficult to beat SQLite if you do not have a very huge parallelism factor in writes. SQLite is an embedded database: no socket to open, you directly access to it via file system. If you do not plan to use BigData with high number of writers, you will have an hard time beating SQLite on modern hardware, on average use cases. I have written a…

I built a rules engine around SQLite queries for the last product I was working on. This article was the reason. You can run an unbelievable # of select statements per unit time against a SQLite database. I think of it like a direct method invocation to members of some List<T> within the application itself. Developers who still protest SQLite are really sleeping on the latency advantages. 2-3 orders of magnitude are really hard to fight against. This opens up…

bob1029·87-point thread·

I’m glad this was written out because I’ve deeply internalized that many queries => bad. Good to know the overhead for a query is that low

klysm·67-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
939

reference only — not used in Hall rules or ranking

Total comments
552

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2020-08-07Many Small Queries Are Efficient in SQLitepcr91030320
2020-09-30Many Small Queries Are Efficient in SQLitetosh40
2021-02-16Many small queries are efficient in SQLiteFirst breakout · Best threadArtTimeInvestor542342
2022-01-12Many Small Queries Are Efficient in SQLiteradus678
2023-04-21Many Small Queries Are Efficient in SQLiteswyx40
2023-12-06Many Small Queries Are Efficient in SQLitethunderbong20
2024-08-28Many small queries are efficient in SQLiteHall inductiontosh8780
2026-01-10Many small queries are efficient in SQLiteSmartHypercube421
2026-01-24Many Small Queries Are Efficient in SQLiteLatest 20+ point returntosh189121