Architecture

Size Estimation

Two paths:

Missing Index: Data Sampling (v2.0)

Key Lookup: Proportional Scaling

Key rule: Estimate ≥ current size. Adding columns can never shrink an index. Both paths enforce a floor of current size + 5%.

Display Conventions

WhatFormatExample
Existing index sizeMB, 1 decimal178.5 MB
Estimated new sizeMB, 1 decimal184.3 MB

The EstimatedSizeGB column stores values in GB (historical), but display always converts: FORMAT(EstimatedSizeGB * 1024, 'N1') + ' MB'.

Schema

All objects in the indexing schema in DBA_Utilities. 6 results tables (one per tool), ~22 procs, 8 functions (internal to optimize-index).