Tag

Database Indexes

0 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 26, 2024 · Databases

Detailed Explanation of Common JOIN Scenarios in the EXPLAIN TYPE Column

This tutorial walks through MySQL's EXPLAIN TYPE column, illustrating how different join types such as const, eq_ref, ref, range, and index affect query performance using concrete SQL examples and execution‑plan analysis on a sample table with a composite primary key.

Database IndexesEXPLAINMySQL
0 likes · 11 min read
Detailed Explanation of Common JOIN Scenarios in the EXPLAIN TYPE Column
Architecture & Thinking
Architecture & Thinking
Mar 22, 2022 · Databases

How Indexes Accelerate MySQL Queries: From Binary Trees to B+Trees

This article explains the purpose and principles of database indexes, compares various tree structures such as binary search trees, AVL trees, B‑Trees and B+Trees, and shows how MySQL uses B+Tree indexes to minimize disk I/O and boost query performance.

AVL TreeB+ TreeData Structures
0 likes · 17 min read
How Indexes Accelerate MySQL Queries: From Binary Trees to B+Trees
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 13, 2019 · Databases

Understanding MySQL GROUP BY Execution Strategies

This article explains why MySQL GROUP BY can dominate query cost, describes the four execution methods—index‑ordered, external‑sort (filesort), temporary‑table, and index‑skip‑scan for MIN/MAX—shows how filtering interacts with grouping, and offers practical tips such as using FORCE INDEX to obtain the optimal plan.

Database IndexesGROUP BYMySQL
0 likes · 12 min read
Understanding MySQL GROUP BY Execution Strategies
Java Captain
Java Captain
Apr 12, 2019 · Databases

Understanding MySQL Indexes in InnoDB: Structures, Types, and Optimization Techniques

This article explains MySQL indexes—defining what they are, classifying them by structure, storage, and logic, illustrating InnoDB clustered and secondary index structures with examples, and covering advanced concepts such as covering indexes, the leftmost‑prefix rule, and index condition pushdown to improve query performance.

Database IndexesIndex Condition PushdownInnoDB
0 likes · 10 min read
Understanding MySQL Indexes in InnoDB: Structures, Types, and Optimization Techniques