Fix the Page, Not the API
A homepage that needed 19 API calls loaded one section at a time. GraphQL would have meant redesigning the API. Precomputing each page at the edge fixed the speed, and then quietly survived an outage and a bot flood.
A homepage that needed 19 API calls loaded one section at a time. GraphQL would have meant redesigning the API. Precomputing each page at the edge fixed the speed, and then quietly survived an outage and a bot flood.
Keyword search on 170,000 news articles took up to 36 seconds. EXPLAIN ANALYZE pointed at the wrong thing. The fix was a narrow table, and search now answers in 29 ms.