Last active
December 21, 2015 13:18
-
-
Save soey/6311279 to your computer and use it in GitHub Desktop.
alternatives to insert into select causing read locks on innodb
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
SELECT * FROM tbl1 INFO OUTFILE '/tmp/tbl1.txt'; | |
LOAD DATA INFILE '/tmp/tbl1.txt' INTO TABLE tbl2; | |
//see http://www.mysqlperformanceblog.com/2006/07/12/insert-into-select-performance-with-innodb-tables/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment