Indexing
Creating auxiliary data structures (trees, hash tables) to enable fast data retrieval without scanning the entire dataset.
Indexing is creating extra structures — usually B-trees or hash tables — that enable rapid lookups without full table scans. ISAM introduced indexing for sequential files in the 1950s, and it's been core to every DBMS since. An index trades storage space for query speed; a well-chosen index can accelerate a query thousandfold. Conversely, too many indexes slow writes and waste storage. Index selection is often the highest-leverage optimization in production systems, making it a frequent target for query tuning and automated tools.