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 install into the optimize schema. 17 tables (6 results tables for the tools, 9 internal staging tables for the optimize-index pipeline, 2 maintenance history tables), ~27 procs, and 8 functions.