-
-
Save kolinko-ant/10b222eb78579c09acc60a38881bce3f to your computer and use it in GitHub Desktop.
Fast LOAD DATA INFILE with MySQL
This file contains hidden or 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