What does it mean MATERIALIZED in the select_type column in the result of MySQL Explain closure?
Asked Answered
V

1

8

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.

Valuer answered 11/12, 2019 at 9:38 Comment(1)
#3030341Colous
S
11

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

Shanklin answered 11/12, 2019 at 11:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.