Hey there! JamES is using Stickr.

Stickr is a free service that helps you comment and share anything on the Web, follow others comments and leave notes for yourself and your friends - on any website you want!
Join Stickr today to start following JamES's stickers and comment websites on your own.

Get started

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

Заливаем сотни гигов в базу именно так. Не забудьте настроить конфиги, чтобы кодировка текста не полетела

JamES

11 years ago

pt-fifo-split infile.txt --fifo /tmp/my-fifo --lines 1000000

JamES

11 years ago

while [ -e /tmp/my-fifo ]; do

time mysql -e "set foreign_key_checks=0; set sql_log_bin=0; set unique_checks=0; load data local infile '/tmp/my-fifo' into table load_test fields terminated by '\t' lines terminated by '\n' (col1, col2);"

sleep 1;

done

Add comments

Ctrl + Enter

Recommendations

Sticker Actions

  • reacted like 26th Sep
  • reacted like 25th Sep
  • left comment to sticker 25th Sep
Загрузка...