Table vs Temp Table Performance

后端 未结 7 2000
梦如初夏
梦如初夏 2021-02-14 13:54

Which is faster for millions of records: Permanent Table or Temp Tables?

I have to use it only for 15 million records. After processing is complete, we delete t

7条回答
  •  鱼传尺愫
    2021-02-14 13:59

    Permanent table is faster if the table structure is to be 100% the same since there's no overhead for allocating space and building the table.

    Temp table is faster in certain cases (e.g. when you don't need indexes that are present on permanent table which would slow down inserts/updates)

提交回复
热议问题