Inclusion into an interesting problem with the MySQL table, which I created as a temporary table for reporting purposes.
I found that if I did not specify a storage mechanism, the DROP TEMPORARY TABLE command would hang for half a second.
If I defined my table as ENGINE = MEMORY, this short hang will disappear.
Since I have a solution to this problem (using MEMORY tables), my question is why will the temporary table take a lot of time? By default, they do not use the MEMORY engine? It’s not even a very large table, a couple of hundred lines with my current test data.
, , , - mysql, /tmp - . ( ) RAM, /dev/shm.
, !
InnoDb, , InnoDb, InnoDb , DROP TEMPORARY TABLE , . .
, DROP (TEMPORARY) TABLE LOCK, . , , .
, InnoDb 80 , SQL InnoDb. 100 DROP TEMPORARY TABLE 5 , . , , , - , , . , DROP TEMPORARY TABLE.