Tag

Semi-Join

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 24, 2025 · Databases

MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations

This article explains how to read MySQL's EXPLAIN EXTRA column, covering SEMI JOIN hints such as FirstMatch, Start/End temporary, LooseScan, and the Range‑checked‑for‑each‑record optimization, with concrete examples and command‑line output to illustrate each case.

EXPLAINMySQLQuery Optimization
0 likes · 9 min read
MySQL EXPLAIN EXTRA: Interpreting SEMI JOIN Hints and Related Optimizations
Architecture Digest
Architecture Digest
Jul 18, 2022 · Databases

Why MySQL IN Subquery with Semi‑Join Is Slow and How to Optimize It

The article analyzes a slow MySQL query that uses an IN subquery on a massive user table, explains how the optimizer’s semi‑join and materialized temporary tables cause full‑table scans, and demonstrates practical fixes such as disabling the semi‑join optimizer switch or rewriting the SQL to regain index usage.

MySQLSQL OptimizationSemi-Join
0 likes · 8 min read
Why MySQL IN Subquery with Semi‑Join Is Slow and How to Optimize It
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 21, 2020 · Databases

Understanding Semi‑join Materialization in MySQL Subquery Optimization

This article explains how MySQL transforms eligible subqueries into semi‑joins, describes the four semi‑join strategies, and details the Semi‑join Materialization approach—including Materialization‑scan and Materialization‑lookup—while showing how to identify the chosen strategy via EXPLAIN output.

MaterializationMySQLSemi-Join
0 likes · 9 min read
Understanding Semi‑join Materialization in MySQL Subquery Optimization