A product listing endpoint took about three seconds to answer. Almost none of that was my code.
It was waiting. Every time someone opened a listing, the endpoint asked several carriers for live delivery rates: one call per shipping option, synchronously, before anything got rendered. Most of those answers went unread. The shopper was still reading the description.
I had spent days on query plans and indexes. The database was not the problem. A third party's worst-case latency had quietly become my normal case, and that happened without anyone deciding it.
So I stopped optimizing and changed what the endpoint promised. Rates came out of the request path: a background job keeps rate tables warm per carrier and destination zone, the listing serves a cached estimate labelled with how fresh it is, and the exact quote gets fetched once, at checkout, where the number is binding and a spinner is acceptable. Response time landed around 200ms, and what is left is mostly mine.
What I do differently now: before touching a query, I ask which numbers in a response actually have to be live. Usually it is one of them. The rest are there because the first version found it convenient to fetch everything in one pass.
Probably there is an external call sitting in your hot path that nobody consciously put there...