When TABLE ACCESS BY INDEX ROWID BATCHED Is Healthy
Standard, fast companion to a selective INDEX RANGE SCAN.
When TABLE ACCESS BY INDEX ROWID BATCHED Becomes a Production Bottleneck
When A-Rows drops dramatically between the child INDEX RANGE SCAN (e.g. 100,000 rows) and this parent table fetch (e.g. 15 rows), you are doing massive wasted table lookups because a filter column is missing from the index.
DBMS_XPLAN Tuning Checklist
- Compare child index A-Rows vs parent TABLE ACCESS A-Rows.
- Inspect filter() predicates on this node and append those columns to the index.
Before (Slow Pattern)
-- Index on (tenant_id) returns 80,000 ROWIDs, table filter keeps 12 rows SELECT id, total FROM orders WHERE tenant_id = 7 AND status = 'FAILED';
After (Tuned Pattern)
CREATE INDEX idx_orders_tenant_status ON orders (tenant_id, status) ONLINE;