6

I just got the next result of MySQL Explain closure:

enter image description here

And I, unfortunately, don't understand what does it mean MATERIALIZED in the last row of the select_type column.

If somebody knows what does it mean please give me any advice to study in this question or give me the answer to it.

1 Answers1

8

It means that the result of a subquery was saved as a virtual temporary table instead of executing it for each row. This was introduced in MySQL 5.7 and speeds up some queries that were super slow before due to the fact the result of their subquery parts wasn't cached

Alexey
  • 2,388
  • 1
  • 16
  • 32