macrozheng
macrozheng
Jun 3, 2020 · Databases

Master MySQL EXPLAIN: Decode Execution Plans for Faster Queries

This article explains the purpose of the MySQL EXPLAIN command, details each column in its output (id, select_type, table, type, possible_keys, etc.), provides real‑world SQL examples, and shows how to interpret the plan to identify indexing, join, and sorting issues for query optimization.

EXPLAINIndexesMySQL
0 likes · 18 min read
Master MySQL EXPLAIN: Decode Execution Plans for Faster Queries
Java Backend Technology
Java Backend Technology
Nov 2, 2019 · Databases

How Indexes Can Slash MySQL Query Time from Hours to Milliseconds

This article walks through a MySQL 5.6 scenario where a nested subquery to find students scoring 100 in Chinese runs for over 30,000 seconds, then demonstrates how adding single‑column and multi‑column indexes, analyzing execution plans, and applying join optimizations can reduce the runtime to milliseconds, while also covering best practices for index design and query tuning.

MySQLQuery PlanSQL performance
0 likes · 9 min read
How Indexes Can Slash MySQL Query Time from Hours to Milliseconds