Never Touch the Table
The query SELECT user_id, status FROM orders WHERE user_id = $1 uses the index on (user_id), but the plan still shows a heap fetch for every matching row and latency is dominated by random reads. What is the targeted fix?
Sign in to answer questions and track your progress
Sign In