Tag

prefix index

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
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 30, 2021 · Databases

Understanding Prefix Index Length Limits in MySQL 5.7 with MyISAM and utf8mb4

The article explains MySQL 5.7's engine‑dependent prefix index length limits, demonstrates how utf8mb4 reduces the maximum indexable column size for MyISAM tables, provides test cases with SQL code, and offers practical solutions such as prefix indexes, composite indexes, and CTAS for large datasets.

Database OptimizationMyISAMMySQL
0 likes · 6 min read
Understanding Prefix Index Length Limits in MySQL 5.7 with MyISAM and utf8mb4
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 12, 2021 · Databases

Using CRC32/MD5 Hashes and Prefix Indexes for Efficient Long String Indexing in MySQL

The article explains how to improve indexing of long string columns in MySQL by using generated columns with CRC32/MD5 hashes, functional indexes introduced in MySQL 8.0.13, and prefix indexes, providing code examples and performance considerations.

CRC32Function IndexGenerated Column
0 likes · 4 min read
Using CRC32/MD5 Hashes and Prefix Indexes for Efficient Long String Indexing in MySQL
Selected Java Interview Questions
Selected Java Interview Questions
Mar 14, 2021 · Databases

Understanding Prefix Indexes in MySQL: Concepts, Use Cases, and Performance Testing

This article explains what a prefix (partial) index is in MySQL, why it can reduce index size and improve query speed, outlines suitable scenarios and limitations, and demonstrates performance differences through a series of tests with varying prefix lengths on a large test table.

Database OptimizationMySQLSQL
0 likes · 6 min read
Understanding Prefix Indexes in MySQL: Concepts, Use Cases, and Performance Testing
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 20, 2021 · Databases

Understanding MySQL Prefix Indexes and Their Optimization

This article explains the concept, creation, and performance benefits of MySQL prefix indexes, demonstrates how to choose an optimal prefix length using selectivity calculations, and presents practical techniques for handling both prefix and suffix search patterns.

Database OptimizationMySQLSQL
0 likes · 12 min read
Understanding MySQL Prefix Indexes and Their Optimization