Time for another entry in the EXPLAIN FORMAT=JSON is cool! series. Today we’re going to look at how you can view the buffer result using JSON (instead of the regular
EXPLAIN
command.
Regular
EXPLAIN
does not identify if
SQL_BUFFER_RESULT
was used at all. To demonstrate, let’s run this query:
mysql> explain select * from salariesG
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: salaries
partitions: NULL
type: ALL
possible_keys: NULL
key: NULL
key_len: NULL
ref: NULL
rows: 2557022
filtered: 100.00
Extra: …[Read more]