If you are in a hurry because you are replacing the contents of a live table, do it as follows:
CREATE TABLE new LIKE live; LOAD DATA ... INTO new; RENAME TABLE live TO old, new TO live; DROP TABLE old;
RENAME is instantaneous and atomic, so you should never, no matter the size of the table.
(Therefore, you donβt need to worry so much about LOAD acceleration.)
Rick james
source share