The explain plan

How MySQL executes queries is one of the major factors of database performance. You can verify the MySQL execution plan using the EXPLAIN command. Starting from MySQL 5.7.2, you can use EXPLAIN to examine queries currently executing in other sessions. EXPLAIN FORMAT=JSON gives detailed information.

Get MySQL 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.