Tag

selectivity

1 views collected around this technical thread.

Architecture & Thinking
Architecture & Thinking
Oct 27, 2023 · Databases

How to Choose the Optimal Prefix Length for MySQL Indexes

This article explains why indexing long character columns can bloat MySQL indexes, introduces the concept of index selectivity, shows how to calculate the best prefix length with real‑world queries, and demonstrates performance differences between short and optimal index prefixes.

Database OptimizationIndexMySQL
0 likes · 8 min read
How to Choose the Optimal Prefix Length for MySQL Indexes
Architecture & Thinking
Architecture & Thinking
Feb 14, 2023 · Databases

How to Choose the Best Index Order for MySQL: Boost Query Performance

This article explains how to determine the optimal order of columns in MySQL composite indexes by analyzing B+Tree structure, index selectivity, and real‑world query performance, providing practical examples and SQL demonstrations to help developers create more efficient indexes.

B+TreeIndex OptimizationMySQL
0 likes · 8 min read
How to Choose the Best Index Order for MySQL: Boost Query Performance
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 7, 2021 · Databases

Understanding MySQL Index Cardinality and Selectivity

This article explains the concept of MySQL index cardinality, how it influences index selectivity, factors that affect cardinality values, methods to view them, and demonstrates with practical examples how different data distributions and query patterns impact the optimizer's execution plans.

CardinalityDatabaseIndex
0 likes · 11 min read
Understanding MySQL Index Cardinality and Selectivity