May 25, 2012

Post: How to load large files safely into InnoDB with LOAD DATA INFILE

loading two huge files into InnoDB with LOAD DATA INFILE. The goal was to load this data… to load data (especially if you disable unique key checks and foreign key checks),…mysql -e “set foreign_key_checks=0; set sql_log_bin=0; set unique_checks=0; load data local infileinfile.txt’ into table load

Post: Predicting how long data load would take

Innodb can use insert buffer for them. Data Insert Order It is well known it is important to load data in primary key order into Innodbload data in MySQL you can use Multiple value insert (standard mysqldump output) or LOAD DATA INFILE (–tab mysqldump output). Generally LOAD DATA

Post: INSERT INTO ... SELECT Performance with Innodb tables.

disabled ? If replication is not used you can enable innodb_locks_unsafe_for_binlog option, which will relax locks which Innodb…OUTFILE ‘/tmp/tbl1.txt’; LOAD DATA INFILE ‘/tmp/tbl1.txt’ …InnoDB 3 mysql tables in use 1, locked 1 2539 lock struct(s), heap size 224576 MySQL…be simple primary key update is…