![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
See ha_innobase or read details about InnoDB internals:
Before 8.0, temporary tables were handled by heap engine. The heap engine had no feature to store bigger tables on disk.
Since 8.0, there is a brand new temptable engine, which is written from scratch using c++11. It has following advantages: