How I Fixed a Node.js API That Was Taking 15 Minutes to Return 8,000 Records
A slow MongoDB + Node.js API was taking 15 minutes to return 8,000 records. Here's the exact process I used to diagnose it — missing indexes, in-memory aggregation, no pagination — and bring it down to 15 seconds.
Read