Tag

NLJ

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 19, 2020 · Databases

MySQL Join Optimization: Understanding BNL vs NLJ and Index Issues with Character Set Mismatches

This article analyzes a slow MySQL LEFT JOIN query, explains why the optimizer chose the inefficient Block Nested Loop algorithm instead of Index Nested Loop, shows how character‑set and collation differences cause index loss, and demonstrates how converting to INNER JOIN or fixing indexes restores high performance.

BNLIndexJoin Optimization
0 likes · 10 min read
MySQL Join Optimization: Understanding BNL vs NLJ and Index Issues with Character Set Mismatches