When INDEX RANGE SCAN Is Healthy

The workhorse of fast OLTP SQL when the leading columns of the index match equality (=) predicates and range predicates come last.

When INDEX RANGE SCAN Becomes a Production Bottleneck

Slow if the access() predicate is overly broad (scanning millions of leaf entries) and a late filter() discards 99% of rows.

DBMS_XPLAN Tuning Checklist

  • Verify Predicate Information shows selective columns inside access(...), not only filter(...).
  • Place equality columns before range columns (>, <, BETWEEN) in composite index definitions.
  • Consider adding trailing SELECT columns to create a covering index and eliminate TABLE ACCESS BY INDEX ROWID.

Before (Slow Pattern)

CREATE INDEX idx_orders_bad ON orders (created_at, status, tenant_id);

After (Tuned Pattern)

-- Equality columns first, range/sort column last
CREATE INDEX idx_orders_good ON orders (tenant_id, status, created_at) ONLINE;