Created
January 9, 2013 14:36
-
-
Save spetrunia/4493592 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB [test]> EXPLAIN SELECT * | |
-> FROM t1a LEFT JOIN t2a ON (b1 = a2) | |
-> WHERE (b1, b1) IN (SELECT a3, b3 FROM t3a); | |
+------+--------------+-------------+------+---------------+------+---------+-------------+------+-------------------------------------------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+------+--------------+-------------+------+---------------+------+---------+-------------+------+-------------------------------------------------+ | |
| 1 | PRIMARY | <subquery2> | ALL | distinct_key | NULL | NULL | NULL | 3 | | | |
| 1 | PRIMARY | t1a | ref | b1 | b1 | 2 | test.t3a.a3 | 1 | Using index | | |
| 1 | PRIMARY | t2a | ALL | NULL | NULL | NULL | NULL | 3 | Using where; Using join buffer (flat, BNL join) | | |
| 2 | MATERIALIZED | t3a | ALL | NULL | NULL | NULL | NULL | 3 | Using where | | |
+------+--------------+-------------+------+---------------+------+---------+-------------+------+-------------------------------------------------+ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment