When INDEX UNIQUE SCAN Is Healthy
Optimal point lookup (typically 2-4 consistent gets/buffers depending on B-Tree height).
When INDEX UNIQUE SCAN Becomes a Production Bottleneck
Only becomes a bottleneck when executed millions of times inside an unnecessary Nested Loop (very high Starts).
DBMS_XPLAN Tuning Checklist
- Check Starts: 3 buffers x 1,000,000 Starts still costs 3,000,000 logical reads.
- Ensure all columns of the unique key are supplied with equality predicates.
Before (Slow Pattern)
SELECT * FROM customers WHERE id = :cust_id;
After (Tuned Pattern)
-- Already optimal single-row lookup (typically <= 4 buffers)