Tagged articles
1 articles
Page 1 of 1
ITPUB
ITPUB
Dec 25, 2020 · Databases

Master MySQL Index Usage: When and How Queries Leverage Indexes

This article explains how MySQL decides whether an index can be used for range scans, LIKE patterns, and ORDER BY operations, detailing key_len calculation, index key vs. filter vs. table filter distinctions, and providing concrete examples and code snippets for better query optimization.

Range ScanSortingexplain
0 likes · 10 min read
Master MySQL Index Usage: When and How Queries Leverage Indexes