Tag

index merge

1 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Mar 29, 2025 · Databases

Understanding MySQL Index Merge: Types, Use Cases, and Optimization Strategies

The article explains MySQL's Index Merge optimization, detailing its three types—Intersection, Union, and Sort‑Union—when it is beneficial, how to design indexes and rewrite queries for better performance, and the associated costs and limitations.

MySQLPerformance TuningQuery Optimization
0 likes · 5 min read
Understanding MySQL Index Merge: Types, Use Cases, and Optimization Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 20, 2024 · Databases

Understanding MySQL Index Merge Optimization and Its Performance Implications

This article explains the MySQL Index Merge access method, details the underlying merge‑sort algorithm, enumerates the three index‑merge strategies, analyzes source‑code snippets, presents a real‑world case where index merge hurts performance, and offers practical optimization recommendations.

MySQLSQL Optimizationdatabase performance
0 likes · 16 min read
Understanding MySQL Index Merge Optimization and Its Performance Implications
Selected Java Interview Questions
Selected Java Interview Questions
Jan 18, 2022 · Databases

Understanding MySQL Deadlock Caused by Index Merge on Update Statements

This article analyzes a production MySQL deadlock caused by two identical UPDATE statements that trigger an index‑merge optimization, explains the lock interactions between the idx_status and PRIMARY indexes, and provides code‑level and MySQL‑level solutions to prevent such deadlocks.

DatabaseInnoDBMySQL
0 likes · 10 min read
Understanding MySQL Deadlock Caused by Index Merge on Update Statements
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 10, 2021 · Databases

Unsuitable Scenarios for MySQL Composite Indexes and Refactoring Strategies

This article reviews MySQL composite index syntax, explains the mandatory condition that the leftmost column must appear in the query filter, analyzes seven representative SQL statements that cannot benefit from a composite index, and provides practical refactoring suggestions such as adding single‑column indexes or creating more appropriate composite indexes.

MySQLQuery Optimizationcomposite index
0 likes · 11 min read
Unsuitable Scenarios for MySQL Composite Indexes and Refactoring Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
May 13, 2019 · Databases

Understanding Cardinality and HINT Usage in MySQL Query Optimization

This article explains the concepts of cardinality and HINT in MySQL, demonstrates how inaccurate cardinality can lead to sub‑optimal execution plans, and shows how applying index_merge hints dramatically reduces query cost and row scans for multi‑column predicates.

CardinalityMySQLQuery Optimizer
0 likes · 7 min read
Understanding Cardinality and HINT Usage in MySQL Query Optimization