Why MySQL Optimizer Chooses Full Table Scan Over Index Scan: Cost Analysis and Experiment
This article explains how MySQL's cost‑based optimizer decides between using an index and performing a full table scan, demonstrates the behavior with a large test table, shows optimizer trace details, and clarifies why index access can sometimes be more expensive than scanning the whole table.