From 19k to 4.2m Events/sec: Story of a Sqlite Query Optimisation
Posted4 months agoActive3 months ago
mnt.ioTechstory
calmpositive
Debate
20/100
SqliteQuery OptimizationDatabase Performance
Key topics
Sqlite
Query Optimization
Database Performance
A developer optimized a SQLite query, increasing performance from 19k to 4.2M events/sec, sparking discussion on alternative optimization approaches.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
41m
Peak period
1
Day 1
Avg / period
1
Key moments
- 01Story posted
Sep 12, 2025 at 12:50 PM EDT
4 months ago
Step 01 - 02First comment
Sep 12, 2025 at 1:31 PM EDT
41m after posting
Step 02 - 03Peak activity
1 comments in Day 1
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 23, 2025 at 9:11 AM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45224075Type: storyLast synced: 11/17/2025, 6:16:42 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
- time: 98ms - throughput: 101Kelem/s
which is way slower than the 2.3ms and 4.18Melem/s we have with our final solution. It's even slower than the `CASE` without the `LEFT JOIN` (which was 39ms and 251Kelem/s).
Again, thanks for having pointed that out!