← All topics
performance
1 piece
600 File Reads to Serve One Article
A content loader that reads the entire collection to find a single document, what it costs at realistic scale, and the four-line fix that also opened a path-traversal hole
A measured account of read amplification in a file-backed Next.js content site: 600 disk reads per article request at 300 documents, reduced to 2, and the security surface the fix created along the way.
2026-09-07 · technical-essay · 4 min read