Tagged articles
5 articles
Page 1 of 1
Senior Brother's Insights
Senior Brother's Insights
Oct 4, 2025 · Databases

Master MySQL Composite Indexes: Unlock the Leftmost Prefix Principle

This article explains what MySQL composite (multi‑column) indexes are, how they are built and ordered, the leftmost‑prefix rule that governs their usage, factors such as cardinality and selectivity for optimal design, and common scenarios where the index may become ineffective.

Composite IndexDatabase OptimizationIndex Selectivity
0 likes · 11 min read
Master MySQL Composite Indexes: Unlock the Leftmost Prefix Principle
Selected Java Interview Questions
Selected Java Interview Questions
Nov 24, 2022 · Databases

Common MySQL Index Failure Scenarios and Optimization Techniques

This article explains why many MySQL queries cause index inefficiency, details the leftmost prefix rule for composite indexes, illustrates common index‑breaking patterns such as SELECT *, functions, range queries, LIKE, OR, IN, ORDER BY, and introduces Index Condition Pushdown (ICP) as an optimization to reduce row lookups.

Leftmost Prefixdatabasemysql
0 likes · 19 min read
Common MySQL Index Failure Scenarios and Optimization Techniques