SQL explain plan: what is Materialize?

后端 未结 5 627
轮回少年
轮回少年 2020-12-25 11:07

I asked PostgreSQL to explain my query. Part of the explanation was:

table_name --> Materialize

What does materialize do? I\'m joining t

5条回答
  •  梦谈多话
    2020-12-25 11:28

    It means that it can't use any index (or similar method) to make the join efficient, so as a last resort is materializes the result from one of the tables to have a smaller set to work with when joining against the other table.

提交回复
热议问题