Last active
October 24, 2022 09:36
-
-
Save Veve2/2df6f8edf4e4b771fa2acbe863fb389a to your computer and use it in GitHub Desktop.
Fast LOAD DATA INFILE with MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET FOREIGN_KEY_CHECKS = 0; | |
SET UNIQUE_CHECKS = 0; | |
SET SESSION tx_isolation='READ-UNCOMMITTED'; | |
SET sql_log_bin = 0; | |
#LOAD DATA LOCAL INFILE.... | |
SET UNIQUE_CHECKS = 1; | |
SET FOREIGN_KEY_CHECKS = 1; | |
SET SESSION tx_isolation='READ-REPEATABLE'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From http://stackoverflow.com/a/39251799/4074148